Coverage for cuda / bindings / cydriver.pyx: 63%

959 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-10 01:19 +0000

1# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 

2# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE 

3  

4# This code was automatically generated with version 13.1.0. Do not modify it directly. 

5cimport cuda.bindings._bindings.cydriver as cydriver 

6  

7cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: 

8 return cydriver._cuGetErrorString(error, pStr) 

9  

10cdef CUresult cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: 

11 return cydriver._cuGetErrorName(error, pStr) 

12  

13cdef CUresult cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

14 return cydriver._cuInit(Flags) 

15  

16cdef CUresult cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil: 

17 return cydriver._cuDriverGetVersion(driverVersion) 

18  

19cdef CUresult cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil: 

20 return cydriver._cuDeviceGet(device, ordinal) 

21  

22cdef CUresult cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil: 

23 return cydriver._cuDeviceGetCount(count) 

24  

25cdef CUresult cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

26 return cydriver._cuDeviceGetName(name, length, dev) 

27  

28cdef CUresult cuDeviceGetUuid(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

29 return cydriver._cuDeviceGetUuid_v2(uuid, dev) 

30  

31cdef CUresult cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

32 return cydriver._cuDeviceGetLuid(luid, deviceNodeMask, dev) 

33  

34cdef CUresult cuDeviceTotalMem(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

35 return cydriver._cuDeviceTotalMem_v2(numbytes, dev) 

36  

37cdef CUresult cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

38 return cydriver._cuDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, pformat, numChannels, dev) 

39  

40cdef CUresult cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

41 return cydriver._cuDeviceGetAttribute(pi, attrib, dev) 

42  

43cdef CUresult cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

44 return cydriver._cuDeviceGetHostAtomicCapabilities(capabilities, operations, count, dev) 

45  

46cdef CUresult cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

47 return cydriver._cuDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, dev, flags) 

48  

49cdef CUresult cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: 

50 return cydriver._cuDeviceSetMemPool(dev, pool) 

51  

52cdef CUresult cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

53 return cydriver._cuDeviceGetMemPool(pool, dev) 

54  

55cdef CUresult cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

56 return cydriver._cuDeviceGetDefaultMemPool(pool_out, dev) 

57  

58cdef CUresult cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

59 return cydriver._cuDeviceGetExecAffinitySupport(pi, typename, dev) 

60  

61cdef CUresult cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil: 

62 return cydriver._cuFlushGPUDirectRDMAWrites(target, scope) 

63  

64cdef CUresult cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

65 return cydriver._cuDeviceGetProperties(prop, dev) 

66  

67cdef CUresult cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

68 return cydriver._cuDeviceComputeCapability(major, minor, dev) 

69  

70cdef CUresult cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

71 return cydriver._cuDevicePrimaryCtxRetain(pctx, dev) 

72  

73cdef CUresult cuDevicePrimaryCtxRelease(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

74 return cydriver._cuDevicePrimaryCtxRelease_v2(dev) 

75  

76cdef CUresult cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

77 return cydriver._cuDevicePrimaryCtxSetFlags_v2(dev, flags) 

78  

79cdef CUresult cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil: 

80 return cydriver._cuDevicePrimaryCtxGetState(dev, flags, active) 

81  

82cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

83 return cydriver._cuDevicePrimaryCtxReset_v2(dev) 

84  

85cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

86 return cydriver._cuCtxCreate_v4(pctx, ctxCreateParams, flags, dev) 

87  

88cdef CUresult cuCtxDestroy(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

89 return cydriver._cuCtxDestroy_v2(ctx) 

90  

91cdef CUresult cuCtxPushCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

92 return cydriver._cuCtxPushCurrent_v2(ctx) 

93  

94cdef CUresult cuCtxPopCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

95 return cydriver._cuCtxPopCurrent_v2(pctx) 

96  

97cdef CUresult cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

98 return cydriver._cuCtxSetCurrent(ctx) 

99  

100cdef CUresult cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

101 return cydriver._cuCtxGetCurrent(pctx) 

102  

103cdef CUresult cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil: 

104 return cydriver._cuCtxGetDevice(device) 

105  

106cdef CUresult cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

107 return cydriver._cuCtxGetDevice_v2(device, ctx) 

108  

109cdef CUresult cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

110 return cydriver._cuCtxGetFlags(flags) 

111  

112cdef CUresult cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

113 return cydriver._cuCtxSetFlags(flags) 

114  

115cdef CUresult cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil: 

116 return cydriver._cuCtxGetId(ctx, ctxId) 

117  

118cdef CUresult cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil: 

119 return cydriver._cuCtxSynchronize() 

120  

121cdef CUresult cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

122 return cydriver._cuCtxSynchronize_v2(ctx) 

123  

124cdef CUresult cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil: 

125 return cydriver._cuCtxSetLimit(limit, value) 

126  

127cdef CUresult cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil: 

128 return cydriver._cuCtxGetLimit(pvalue, limit) 

129  

130cdef CUresult cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil: 

131 return cydriver._cuCtxGetCacheConfig(pconfig) 

132  

133cdef CUresult cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil: 

134 return cydriver._cuCtxSetCacheConfig(config) 

135  

136cdef CUresult cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil: 

137 return cydriver._cuCtxGetApiVersion(ctx, version) 

138  

139cdef CUresult cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil: 

140 return cydriver._cuCtxGetStreamPriorityRange(leastPriority, greatestPriority) 

141  

142cdef CUresult cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil: 

143 return cydriver._cuCtxResetPersistingL2Cache() 

144  

145cdef CUresult cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

146 return cydriver._cuCtxGetExecAffinity(pExecAffinity, typename) 

147  

148cdef CUresult cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

149 return cydriver._cuCtxRecordEvent(hCtx, hEvent) 

150  

151cdef CUresult cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

152 return cydriver._cuCtxWaitEvent(hCtx, hEvent) 

153  

154cdef CUresult cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

155 return cydriver._cuCtxAttach(pctx, flags) 

156  

157cdef CUresult cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

158 return cydriver._cuCtxDetach(ctx) 

159  

160cdef CUresult cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil: 

161 return cydriver._cuCtxGetSharedMemConfig(pConfig) 

162  

163cdef CUresult cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil: 

164 return cydriver._cuCtxSetSharedMemConfig(config) 

165  

166cdef CUresult cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil: 

167 return cydriver._cuModuleLoad(module, fname) 

168  

169cdef CUresult cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil: 

170 return cydriver._cuModuleLoadData(module, image) 

171  

172cdef CUresult cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: 

173 return cydriver._cuModuleLoadDataEx(module, image, numOptions, options, optionValues) 

174  

175cdef CUresult cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil: 

176 return cydriver._cuModuleLoadFatBinary(module, fatCubin) 

177  

178cdef CUresult cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil: 

179 return cydriver._cuModuleUnload(hmod) 

180  

181cdef CUresult cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil: 

182 return cydriver._cuModuleGetLoadingMode(mode) 

183  

184cdef CUresult cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

185 return cydriver._cuModuleGetFunction(hfunc, hmod, name) 

186  

187cdef CUresult cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil: 

188 return cydriver._cuModuleGetFunctionCount(count, mod) 

189  

190cdef CUresult cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil: 

191 return cydriver._cuModuleEnumerateFunctions(functions, numFunctions, mod) 

192  

193cdef CUresult cuModuleGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

194 return cydriver._cuModuleGetGlobal_v2(dptr, numbytes, hmod, name) 

195  

196cdef CUresult cuLinkCreate(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil: 

197 return cydriver._cuLinkCreate_v2(numOptions, options, optionValues, stateOut) 

198  

199cdef CUresult cuLinkAddData(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: 

200 return cydriver._cuLinkAddData_v2(state, typename, data, size, name, numOptions, options, optionValues) 

201  

202cdef CUresult cuLinkAddFile(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: 

203 return cydriver._cuLinkAddFile_v2(state, typename, path, numOptions, options, optionValues) 

204  

205cdef CUresult cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil: 

206 return cydriver._cuLinkComplete(state, cubinOut, sizeOut) 

207  

208cdef CUresult cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil: 

209 return cydriver._cuLinkDestroy(state) 

210  

211cdef CUresult cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

212 return cydriver._cuModuleGetTexRef(pTexRef, hmod, name) 

213  

214cdef CUresult cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

215 return cydriver._cuModuleGetSurfRef(pSurfRef, hmod, name) 

216  

217cdef CUresult cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil: 

218 return cydriver._cuLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) 

219  

220cdef CUresult cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil: 

221 return cydriver._cuLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) 

222  

223cdef CUresult cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil: 

224 return cydriver._cuLibraryUnload(library) 

225  

226cdef CUresult cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

227 return cydriver._cuLibraryGetKernel(pKernel, library, name) 

228  

229cdef CUresult cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil: 

230 return cydriver._cuLibraryGetKernelCount(count, lib) 

231  

232cdef CUresult cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil: 

233 return cydriver._cuLibraryEnumerateKernels(kernels, numKernels, lib) 

234  

235cdef CUresult cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil: 

236 return cydriver._cuLibraryGetModule(pMod, library) 

237  

238cdef CUresult cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil: 

239 return cydriver._cuKernelGetFunction(pFunc, kernel) 

240  

241cdef CUresult cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil: 

242 return cydriver._cuKernelGetLibrary(pLib, kernel) 

243  

244cdef CUresult cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

245 return cydriver._cuLibraryGetGlobal(dptr, numbytes, library, name) 

246  

247cdef CUresult cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: 

248 return cydriver._cuLibraryGetManaged(dptr, numbytes, library, name) 

249  

250cdef CUresult cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil: 

251 return cydriver._cuLibraryGetUnifiedFunction(fptr, library, symbol) 

252  

253cdef CUresult cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

254 return cydriver._cuKernelGetAttribute(pi, attrib, kernel, dev) 

255  

256cdef CUresult cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

257 return cydriver._cuKernelSetAttribute(attrib, val, kernel, dev) 

258  

259cdef CUresult cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

260 return cydriver._cuKernelSetCacheConfig(kernel, config, dev) 

261  

262cdef CUresult cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: 

263 return cydriver._cuKernelGetName(name, hfunc) 

264  

265cdef CUresult cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil: 

266 return cydriver._cuKernelGetParamInfo(kernel, paramIndex, paramOffset, paramSize) 

267  

268cdef CUresult cuMemGetInfo(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil: 

269 return cydriver._cuMemGetInfo_v2(free, total) 

270  

271cdef CUresult cuMemAlloc(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil: 

272 return cydriver._cuMemAlloc_v2(dptr, bytesize) 

273  

274cdef CUresult cuMemAllocPitch(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil: 

275 return cydriver._cuMemAllocPitch_v2(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes) 

276  

277cdef CUresult cuMemFree(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

278 return cydriver._cuMemFree_v2(dptr) 

279  

280cdef CUresult cuMemGetAddressRange(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

281 return cydriver._cuMemGetAddressRange_v2(pbase, psize, dptr) 

282  

283cdef CUresult cuMemAllocHost(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil: 

284 return cydriver._cuMemAllocHost_v2(pp, bytesize) 

285  

286cdef CUresult cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil: 

287 return cydriver._cuMemFreeHost(p) 

288  

289cdef CUresult cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

290 return cydriver._cuMemHostAlloc(pp, bytesize, Flags) 

291  

292cdef CUresult cuMemHostGetDevicePointer(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

293 return cydriver._cuMemHostGetDevicePointer_v2(pdptr, p, Flags) 

294  

295cdef CUresult cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil: 

296 return cydriver._cuMemHostGetFlags(pFlags, p) 

297  

298cdef CUresult cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

299 return cydriver._cuMemAllocManaged(dptr, bytesize, flags) 

300  

301cdef CUresult cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil: 

302 return cydriver._cuDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) 

303  

304cdef CUresult cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: 

305 return cydriver._cuDeviceUnregisterAsyncNotification(device, callback) 

306  

307cdef CUresult cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil: 

308 return cydriver._cuDeviceGetByPCIBusId(dev, pciBusId) 

309  

310cdef CUresult cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

311 return cydriver._cuDeviceGetPCIBusId(pciBusId, length, dev) 

312  

313cdef CUresult cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

314 return cydriver._cuIpcGetEventHandle(pHandle, event) 

315  

316cdef CUresult cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: 

317 return cydriver._cuIpcOpenEventHandle(phEvent, handle) 

318  

319cdef CUresult cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

320 return cydriver._cuIpcGetMemHandle(pHandle, dptr) 

321  

322cdef CUresult cuIpcOpenMemHandle(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

323 return cydriver._cuIpcOpenMemHandle_v2(pdptr, handle, Flags) 

324  

325cdef CUresult cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

326 return cydriver._cuIpcCloseMemHandle(dptr) 

327  

328cdef CUresult cuMemHostRegister(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

329 return cydriver._cuMemHostRegister_v2(p, bytesize, Flags) 

330  

331cdef CUresult cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil: 

332 return cydriver._cuMemHostUnregister(p) 

333  

334cdef CUresult cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

335 return cydriver._cuMemcpy(dst, src, ByteCount) 

336  

337cdef CUresult cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

338 return cydriver._cuMemcpyPeer(dstDevice, dstContext, srcDevice, srcContext, ByteCount) 

339  

340cdef CUresult cuMemcpyHtoD(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

341 return cydriver._cuMemcpyHtoD_v2(dstDevice, srcHost, ByteCount) 

342  

343cdef CUresult cuMemcpyDtoH(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

344 return cydriver._cuMemcpyDtoH_v2(dstHost, srcDevice, ByteCount) 

345  

346cdef CUresult cuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

347 return cydriver._cuMemcpyDtoD_v2(dstDevice, srcDevice, ByteCount) 

348  

349cdef CUresult cuMemcpyDtoA(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

350 return cydriver._cuMemcpyDtoA_v2(dstArray, dstOffset, srcDevice, ByteCount) 

351  

352cdef CUresult cuMemcpyAtoD(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

353 return cydriver._cuMemcpyAtoD_v2(dstDevice, srcArray, srcOffset, ByteCount) 

354  

355cdef CUresult cuMemcpyHtoA(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

356 return cydriver._cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, ByteCount) 

357  

358cdef CUresult cuMemcpyAtoH(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

359 return cydriver._cuMemcpyAtoH_v2(dstHost, srcArray, srcOffset, ByteCount) 

360  

361cdef CUresult cuMemcpyAtoA(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

362 return cydriver._cuMemcpyAtoA_v2(dstArray, dstOffset, srcArray, srcOffset, ByteCount) 

363  

364cdef CUresult cuMemcpy2D(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: 

365 return cydriver._cuMemcpy2D_v2(pCopy) 

366  

367cdef CUresult cuMemcpy2DUnaligned(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: 

368 return cydriver._cuMemcpy2DUnaligned_v2(pCopy) 

369  

370cdef CUresult cuMemcpy3D(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: 

371 return cydriver._cuMemcpy3D_v2(pCopy) 

372  

373cdef CUresult cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: 

374 return cydriver._cuMemcpy3DPeer(pCopy) 

375  

376cdef CUresult cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

377 return cydriver._cuMemcpyAsync(dst, src, ByteCount, hStream) 

378  

379cdef CUresult cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

380 return cydriver._cuMemcpyPeerAsync(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream) 

381  

382cdef CUresult cuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

383 return cydriver._cuMemcpyHtoDAsync_v2(dstDevice, srcHost, ByteCount, hStream) 

384  

385cdef CUresult cuMemcpyDtoHAsync(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

386 return cydriver._cuMemcpyDtoHAsync_v2(dstHost, srcDevice, ByteCount, hStream) 

387  

388cdef CUresult cuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

389 return cydriver._cuMemcpyDtoDAsync_v2(dstDevice, srcDevice, ByteCount, hStream) 

390  

391cdef CUresult cuMemcpyHtoAAsync(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

392 return cydriver._cuMemcpyHtoAAsync_v2(dstArray, dstOffset, srcHost, ByteCount, hStream) 

393  

394cdef CUresult cuMemcpyAtoHAsync(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

395 return cydriver._cuMemcpyAtoHAsync_v2(dstHost, srcArray, srcOffset, ByteCount, hStream) 

396  

397cdef CUresult cuMemcpy2DAsync(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

398 return cydriver._cuMemcpy2DAsync_v2(pCopy, hStream) 

399  

400cdef CUresult cuMemcpy3DAsync(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

401 return cydriver._cuMemcpy3DAsync_v2(pCopy, hStream) 

402  

403cdef CUresult cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

404 return cydriver._cuMemcpy3DPeerAsync(pCopy, hStream) 

405  

406cdef CUresult cuMemcpyBatchAsync(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

407 return cydriver._cuMemcpyBatchAsync_v2(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream) 

408  

409cdef CUresult cuMemcpy3DBatchAsync(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

410 return cydriver._cuMemcpy3DBatchAsync_v2(numOps, opList, flags, hStream) 

411  

412cdef CUresult cuMemsetD8(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: 

413 return cydriver._cuMemsetD8_v2(dstDevice, uc, N) 

414  

415cdef CUresult cuMemsetD16(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: 

416 return cydriver._cuMemsetD16_v2(dstDevice, us, N) 

417  

418cdef CUresult cuMemsetD32(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: 

419 return cydriver._cuMemsetD32_v2(dstDevice, ui, N) 

420  

421cdef CUresult cuMemsetD2D8(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: 

422 return cydriver._cuMemsetD2D8_v2(dstDevice, dstPitch, uc, Width, Height) 

423  

424cdef CUresult cuMemsetD2D16(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: 

425 return cydriver._cuMemsetD2D16_v2(dstDevice, dstPitch, us, Width, Height) 

426  

427cdef CUresult cuMemsetD2D32(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: 

428 return cydriver._cuMemsetD2D32_v2(dstDevice, dstPitch, ui, Width, Height) 

429  

430cdef CUresult cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

431 return cydriver._cuMemsetD8Async(dstDevice, uc, N, hStream) 

432  

433cdef CUresult cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

434 return cydriver._cuMemsetD16Async(dstDevice, us, N, hStream) 

435  

436cdef CUresult cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

437 return cydriver._cuMemsetD32Async(dstDevice, ui, N, hStream) 

438  

439cdef CUresult cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

440 return cydriver._cuMemsetD2D8Async(dstDevice, dstPitch, uc, Width, Height, hStream) 

441  

442cdef CUresult cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

443 return cydriver._cuMemsetD2D16Async(dstDevice, dstPitch, us, Width, Height, hStream) 

444  

445cdef CUresult cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

446 return cydriver._cuMemsetD2D32Async(dstDevice, dstPitch, ui, Width, Height, hStream) 

447  

448cdef CUresult cuArrayCreate(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil: 

449 return cydriver._cuArrayCreate_v2(pHandle, pAllocateArray) 

450  

451cdef CUresult cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: 

452 return cydriver._cuArrayGetDescriptor_v2(pArrayDescriptor, hArray) 

453  

454cdef CUresult cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil: 

455 return cydriver._cuArrayGetSparseProperties(sparseProperties, array) 

456  

457cdef CUresult cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil: 

458 return cydriver._cuMipmappedArrayGetSparseProperties(sparseProperties, mipmap) 

459  

460cdef CUresult cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: 

461 return cydriver._cuArrayGetMemoryRequirements(memoryRequirements, array, device) 

462  

463cdef CUresult cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: 

464 return cydriver._cuMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) 

465  

466cdef CUresult cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil: 

467 return cydriver._cuArrayGetPlane(pPlaneArray, hArray, planeIdx) 

468  

469cdef CUresult cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: 

470 return cydriver._cuArrayDestroy(hArray) 

471  

472cdef CUresult cuArray3DCreate(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil: 

473 return cydriver._cuArray3DCreate_v2(pHandle, pAllocateArray) 

474  

475cdef CUresult cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: 

476 return cydriver._cuArray3DGetDescriptor_v2(pArrayDescriptor, hArray) 

477  

478cdef CUresult cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil: 

479 return cydriver._cuMipmappedArrayCreate(pHandle, pMipmappedArrayDesc, numMipmapLevels) 

480  

481cdef CUresult cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil: 

482 return cydriver._cuMipmappedArrayGetLevel(pLevelArray, hMipmappedArray, level) 

483  

484cdef CUresult cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil: 

485 return cydriver._cuMipmappedArrayDestroy(hMipmappedArray) 

486  

487cdef CUresult cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

488 return cydriver._cuMemGetHandleForAddressRange(handle, dptr, size, handleType, flags) 

489  

490cdef CUresult cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: 

491 return cydriver._cuMemBatchDecompressAsync(paramsArray, count, flags, errorIndex, stream) 

492  

493cdef CUresult cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

494 return cydriver._cuMemAddressReserve(ptr, size, alignment, addr, flags) 

495  

496cdef CUresult cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: 

497 return cydriver._cuMemAddressFree(ptr, size) 

498  

499cdef CUresult cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

500 return cydriver._cuMemCreate(handle, size, prop, flags) 

501  

502cdef CUresult cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: 

503 return cydriver._cuMemRelease(handle) 

504  

505cdef CUresult cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

506 return cydriver._cuMemMap(ptr, size, offset, handle, flags) 

507  

508cdef CUresult cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

509 return cydriver._cuMemMapArrayAsync(mapInfoList, count, hStream) 

510  

511cdef CUresult cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: 

512 return cydriver._cuMemUnmap(ptr, size) 

513  

514cdef CUresult cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: 

515 return cydriver._cuMemSetAccess(ptr, size, desc, count) 

516  

517cdef CUresult cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

518 return cydriver._cuMemGetAccess(flags, location, ptr) 

519  

520cdef CUresult cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

521 return cydriver._cuMemExportToShareableHandle(shareableHandle, handle, handleType, flags) 

522  

523cdef CUresult cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil: 

524 return cydriver._cuMemImportFromShareableHandle(handle, osHandle, shHandleType) 

525  

526cdef CUresult cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil: 

527 return cydriver._cuMemGetAllocationGranularity(granularity, prop, option) 

528  

529cdef CUresult cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: 

530 return cydriver._cuMemGetAllocationPropertiesFromHandle(prop, handle) 

531  

532cdef CUresult cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil: 

533 return cydriver._cuMemRetainAllocationHandle(handle, addr) 

534  

535cdef CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

536 return cydriver._cuMemFreeAsync(dptr, hStream) 

537  

538cdef CUresult cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

539 return cydriver._cuMemAllocAsync(dptr, bytesize, hStream) 

540  

541cdef CUresult cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil: 

542 return cydriver._cuMemPoolTrimTo(pool, minBytesToKeep) 

543  

544cdef CUresult cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: 

545 return cydriver._cuMemPoolSetAttribute(pool, attr, value) 

546  

547cdef CUresult cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: 

548 return cydriver._cuMemPoolGetAttribute(pool, attr, value) 

549  

550cdef CUresult cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: 

551 return cydriver._cuMemPoolSetAccess(pool, map, count) 

552  

553cdef CUresult cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil: 

554 return cydriver._cuMemPoolGetAccess(flags, memPool, location) 

555  

556cdef CUresult cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil: 

557 return cydriver._cuMemPoolCreate(pool, poolProps) 

558  

559cdef CUresult cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: 

560 return cydriver._cuMemPoolDestroy(pool) 

561  

562cdef CUresult cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

563 return cydriver._cuMemGetDefaultMemPool(pool_out, location, typename) 

564  

565cdef CUresult cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

566 return cydriver._cuMemGetMemPool(pool, location, typename) 

567  

568cdef CUresult cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: 

569 return cydriver._cuMemSetMemPool(location, typename, pool) 

570  

571cdef CUresult cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

572 return cydriver._cuMemAllocFromPoolAsync(dptr, bytesize, pool, hStream) 

573  

574cdef CUresult cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

575 return cydriver._cuMemPoolExportToShareableHandle(handle_out, pool, handleType, flags) 

576  

577cdef CUresult cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

578 return cydriver._cuMemPoolImportFromShareableHandle(pool_out, handle, handleType, flags) 

579  

580cdef CUresult cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

581 return cydriver._cuMemPoolExportPointer(shareData_out, ptr) 

582  

583cdef CUresult cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil: 

584 return cydriver._cuMemPoolImportPointer(ptr_out, pool, shareData) 

585  

586cdef CUresult cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil: 

587 return cydriver._cuMulticastCreate(mcHandle, prop) 

588  

589cdef CUresult cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: 

590 return cydriver._cuMulticastAddDevice(mcHandle, dev) 

591  

592cdef CUresult cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

593 return cydriver._cuMulticastBindMem(mcHandle, mcOffset, memHandle, memOffset, size, flags) 

594  

595cdef CUresult cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

596 return cydriver._cuMulticastBindMem_v2(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags) 

597  

598cdef CUresult cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

599 return cydriver._cuMulticastBindAddr(mcHandle, mcOffset, memptr, size, flags) 

600  

601cdef CUresult cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

602 return cydriver._cuMulticastBindAddr_v2(mcHandle, dev, mcOffset, memptr, size, flags) 

603  

604cdef CUresult cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: 

605 return cydriver._cuMulticastUnbind(mcHandle, dev, mcOffset, size) 

606  

607cdef CUresult cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil: 

608 return cydriver._cuMulticastGetGranularity(granularity, prop, option) 

609  

610cdef CUresult cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

611 return cydriver._cuPointerGetAttribute(data, attribute, ptr) 

612  

613cdef CUresult cuMemPrefetchAsync(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

614 return cydriver._cuMemPrefetchAsync_v2(devPtr, count, location, flags, hStream) 

615  

616cdef CUresult cuMemAdvise(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil: 

617 return cydriver._cuMemAdvise_v2(devPtr, count, advice, location) 

618  

619cdef CUresult cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

620 return cydriver._cuMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) 

621  

622cdef CUresult cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

623 return cydriver._cuMemDiscardBatchAsync(dptrs, sizes, count, flags, hStream) 

624  

625cdef CUresult cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

626 return cydriver._cuMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) 

627  

628cdef CUresult cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: 

629 return cydriver._cuMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) 

630  

631cdef CUresult cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: 

632 return cydriver._cuMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) 

633  

634cdef CUresult cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

635 return cydriver._cuPointerSetAttribute(value, attribute, ptr) 

636  

637cdef CUresult cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

638 return cydriver._cuPointerGetAttributes(numAttributes, attributes, data, ptr) 

639  

640cdef CUresult cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

641 return cydriver._cuStreamCreate(phStream, Flags) 

642  

643cdef CUresult cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil: 

644 return cydriver._cuStreamCreateWithPriority(phStream, flags, priority) 

645  

646cdef CUresult cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil: 

647 return cydriver._cuStreamGetPriority(hStream, priority) 

648  

649cdef CUresult cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil: 

650 return cydriver._cuStreamGetDevice(hStream, device) 

651  

652cdef CUresult cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

653 return cydriver._cuStreamGetFlags(hStream, flags) 

654  

655cdef CUresult cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil: 

656 return cydriver._cuStreamGetId(hStream, streamId) 

657  

658cdef CUresult cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

659 return cydriver._cuStreamGetCtx(hStream, pctx) 

660  

661cdef CUresult cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil: 

662 return cydriver._cuStreamGetCtx_v2(hStream, pCtx, pGreenCtx) 

663  

664cdef CUresult cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

665 return cydriver._cuStreamWaitEvent(hStream, hEvent, Flags) 

666  

667cdef CUresult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

668 return cydriver._cuStreamAddCallback(hStream, callback, userData, flags) 

669  

670cdef CUresult cuStreamBeginCapture(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil: 

671 return cydriver._cuStreamBeginCapture_v2(hStream, mode) 

672  

673cdef CUresult cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil: 

674 return cydriver._cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies, dependencyData, numDependencies, mode) 

675  

676cdef CUresult cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil: 

677 return cydriver._cuThreadExchangeStreamCaptureMode(mode) 

678  

679cdef CUresult cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

680 return cydriver._cuStreamEndCapture(hStream, phGraph) 

681  

682cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil: 

683 return cydriver._cuStreamIsCapturing(hStream, captureStatus) 

684  

685cdef CUresult cuStreamGetCaptureInfo(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

686 return cydriver._cuStreamGetCaptureInfo_v3(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) 

687  

688cdef CUresult cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

689 return cydriver._cuStreamUpdateCaptureDependencies_v2(hStream, dependencies, dependencyData, numDependencies, flags) 

690  

691cdef CUresult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

692 return cydriver._cuStreamAttachMemAsync(hStream, dptr, length, flags) 

693  

694cdef CUresult cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

695 return cydriver._cuStreamQuery(hStream) 

696  

697cdef CUresult cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

698 return cydriver._cuStreamSynchronize(hStream) 

699  

700cdef CUresult cuStreamDestroy(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

701 return cydriver._cuStreamDestroy_v2(hStream) 

702  

703cdef CUresult cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil: 

704 return cydriver._cuStreamCopyAttributes(dst, src) 

705  

706cdef CUresult cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

707 return cydriver._cuStreamGetAttribute(hStream, attr, value_out) 

708  

709cdef CUresult cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil: 

710 return cydriver._cuStreamSetAttribute(hStream, attr, value) 

711  

712cdef CUresult cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

713 return cydriver._cuEventCreate(phEvent, Flags) 

714  

715cdef CUresult cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

716 return cydriver._cuEventRecord(hEvent, hStream) 

717  

718cdef CUresult cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

719 return cydriver._cuEventRecordWithFlags(hEvent, hStream, flags) 

720  

721cdef CUresult cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

722 return cydriver._cuEventQuery(hEvent) 

723  

724cdef CUresult cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

725 return cydriver._cuEventSynchronize(hEvent) 

726  

727cdef CUresult cuEventDestroy(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

728 return cydriver._cuEventDestroy_v2(hEvent) 

729  

730cdef CUresult cuEventElapsedTime(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil: 

731 return cydriver._cuEventElapsedTime_v2(pMilliseconds, hStart, hEnd) 

732  

733cdef CUresult cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil: 

734 return cydriver._cuImportExternalMemory(extMem_out, memHandleDesc) 

735  

736cdef CUresult cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil: 

737 return cydriver._cuExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) 

738  

739cdef CUresult cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil: 

740 return cydriver._cuExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) 

741  

742cdef CUresult cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil: 

743 return cydriver._cuDestroyExternalMemory(extMem) 

744  

745cdef CUresult cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil: 

746 return cydriver._cuImportExternalSemaphore(extSem_out, semHandleDesc) 

747  

748cdef CUresult cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: 

749 return cydriver._cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) 

750  

751cdef CUresult cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: 

752 return cydriver._cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) 

753  

754cdef CUresult cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil: 

755 return cydriver._cuDestroyExternalSemaphore(extSem) 

756  

757cdef CUresult cuStreamWaitValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

758 return cydriver._cuStreamWaitValue32_v2(stream, addr, value, flags) 

759  

760cdef CUresult cuStreamWaitValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

761 return cydriver._cuStreamWaitValue64_v2(stream, addr, value, flags) 

762  

763cdef CUresult cuStreamWriteValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

764 return cydriver._cuStreamWriteValue32_v2(stream, addr, value, flags) 

765  

766cdef CUresult cuStreamWriteValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

767 return cydriver._cuStreamWriteValue64_v2(stream, addr, value, flags) 

768  

769cdef CUresult cuStreamBatchMemOp(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

770 return cydriver._cuStreamBatchMemOp_v2(stream, count, paramArray, flags) 

771  

772cdef CUresult cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: 

773 return cydriver._cuFuncGetAttribute(pi, attrib, hfunc) 

774  

775cdef CUresult cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil: 

776 return cydriver._cuFuncSetAttribute(hfunc, attrib, value) 

777  

778cdef CUresult cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil: 

779 return cydriver._cuFuncSetCacheConfig(hfunc, config) 

780  

781cdef CUresult cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: 

782 return cydriver._cuFuncGetModule(hmod, hfunc) 

783  

784cdef CUresult cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: 

785 return cydriver._cuFuncGetName(name, hfunc) 

786  

787cdef CUresult cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil: 

788 return cydriver._cuFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) 

789  

790cdef CUresult cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil: 

791 return cydriver._cuFuncIsLoaded(state, function) 

792  

793cdef CUresult cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil: 

794 return cydriver._cuFuncLoad(function) 

795  

796cdef CUresult cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil: 

797 return cydriver._cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra) 

798  

799cdef CUresult cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil: 

800 return cydriver._cuLaunchKernelEx(config, f, kernelParams, extra) 

801  

802cdef CUresult cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

803 return cydriver._cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams) 

804  

805cdef CUresult cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

806 return cydriver._cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags) 

807  

808cdef CUresult cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil: 

809 return cydriver._cuLaunchHostFunc(hStream, fn, userData) 

810  

811cdef CUresult cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil: 

812 return cydriver._cuFuncSetBlockShape(hfunc, x, y, z) 

813  

814cdef CUresult cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: 

815 return cydriver._cuFuncSetSharedSize(hfunc, numbytes) 

816  

817cdef CUresult cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: 

818 return cydriver._cuParamSetSize(hfunc, numbytes) 

819  

820cdef CUresult cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil: 

821 return cydriver._cuParamSeti(hfunc, offset, value) 

822  

823cdef CUresult cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil: 

824 return cydriver._cuParamSetf(hfunc, offset, value) 

825  

826cdef CUresult cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: 

827 return cydriver._cuParamSetv(hfunc, offset, ptr, numbytes) 

828  

829cdef CUresult cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil: 

830 return cydriver._cuLaunch(f) 

831  

832cdef CUresult cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil: 

833 return cydriver._cuLaunchGrid(f, grid_width, grid_height) 

834  

835cdef CUresult cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

836 return cydriver._cuLaunchGridAsync(f, grid_width, grid_height, hStream) 

837  

838cdef CUresult cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

839 return cydriver._cuParamSetTexRef(hfunc, texunit, hTexRef) 

840  

841cdef CUresult cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil: 

842 return cydriver._cuFuncSetSharedMemConfig(hfunc, config) 

843  

844cdef CUresult cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

845 return cydriver._cuGraphCreate(phGraph, flags) 

846  

847cdef CUresult cuGraphAddKernelNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

848 return cydriver._cuGraphAddKernelNode_v2(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) 

849  

850cdef CUresult cuGraphKernelNodeGetParams(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

851 return cydriver._cuGraphKernelNodeGetParams_v2(hNode, nodeParams) 

852  

853cdef CUresult cuGraphKernelNodeSetParams(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

854 return cydriver._cuGraphKernelNodeSetParams_v2(hNode, nodeParams) 

855  

856cdef CUresult cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

857 return cydriver._cuGraphAddMemcpyNode(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx) 

858  

859cdef CUresult cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

860 return cydriver._cuGraphMemcpyNodeGetParams(hNode, nodeParams) 

861  

862cdef CUresult cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

863 return cydriver._cuGraphMemcpyNodeSetParams(hNode, nodeParams) 

864  

865cdef CUresult cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

866 return cydriver._cuGraphAddMemsetNode(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx) 

867  

868cdef CUresult cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

869 return cydriver._cuGraphMemsetNodeGetParams(hNode, nodeParams) 

870  

871cdef CUresult cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

872 return cydriver._cuGraphMemsetNodeSetParams(hNode, nodeParams) 

873  

874cdef CUresult cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

875 return cydriver._cuGraphAddHostNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) 

876  

877cdef CUresult cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

878 return cydriver._cuGraphHostNodeGetParams(hNode, nodeParams) 

879  

880cdef CUresult cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

881 return cydriver._cuGraphHostNodeSetParams(hNode, nodeParams) 

882  

883cdef CUresult cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

884 return cydriver._cuGraphAddChildGraphNode(phGraphNode, hGraph, dependencies, numDependencies, childGraph) 

885  

886cdef CUresult cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

887 return cydriver._cuGraphChildGraphNodeGetGraph(hNode, phGraph) 

888  

889cdef CUresult cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: 

890 return cydriver._cuGraphAddEmptyNode(phGraphNode, hGraph, dependencies, numDependencies) 

891  

892cdef CUresult cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

893 return cydriver._cuGraphAddEventRecordNode(phGraphNode, hGraph, dependencies, numDependencies, event) 

894  

895cdef CUresult cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

896 return cydriver._cuGraphEventRecordNodeGetEvent(hNode, event_out) 

897  

898cdef CUresult cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

899 return cydriver._cuGraphEventRecordNodeSetEvent(hNode, event) 

900  

901cdef CUresult cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

902 return cydriver._cuGraphAddEventWaitNode(phGraphNode, hGraph, dependencies, numDependencies, event) 

903  

904cdef CUresult cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

905 return cydriver._cuGraphEventWaitNodeGetEvent(hNode, event_out) 

906  

907cdef CUresult cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

908 return cydriver._cuGraphEventWaitNodeSetEvent(hNode, event) 

909  

910cdef CUresult cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

911 return cydriver._cuGraphAddExternalSemaphoresSignalNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) 

912  

913cdef CUresult cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

914 return cydriver._cuGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) 

915  

916cdef CUresult cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

917 return cydriver._cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) 

918  

919cdef CUresult cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

920 return cydriver._cuGraphAddExternalSemaphoresWaitNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) 

921  

922cdef CUresult cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

923 return cydriver._cuGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) 

924  

925cdef CUresult cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

926 return cydriver._cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) 

927  

928cdef CUresult cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

929 return cydriver._cuGraphAddBatchMemOpNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) 

930  

931cdef CUresult cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

932 return cydriver._cuGraphBatchMemOpNodeGetParams(hNode, nodeParams_out) 

933  

934cdef CUresult cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

935 return cydriver._cuGraphBatchMemOpNodeSetParams(hNode, nodeParams) 

936  

937cdef CUresult cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

938 return cydriver._cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams) 

939  

940cdef CUresult cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

941 return cydriver._cuGraphAddMemAllocNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) 

942  

943cdef CUresult cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

944 return cydriver._cuGraphMemAllocNodeGetParams(hNode, params_out) 

945  

946cdef CUresult cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: 

947 return cydriver._cuGraphAddMemFreeNode(phGraphNode, hGraph, dependencies, numDependencies, dptr) 

948  

949cdef CUresult cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

950 return cydriver._cuGraphMemFreeNodeGetParams(hNode, dptr_out) 

951  

952cdef CUresult cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: 

953 return cydriver._cuDeviceGraphMemTrim(device) 

954  

955cdef CUresult cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: 

956 return cydriver._cuDeviceGetGraphMemAttribute(device, attr, value) 

957  

958cdef CUresult cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: 

959 return cydriver._cuDeviceSetGraphMemAttribute(device, attr, value) 

960  

961cdef CUresult cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

962 return cydriver._cuGraphClone(phGraphClone, originalGraph) 

963  

964cdef CUresult cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

965 return cydriver._cuGraphNodeFindInClone(phNode, hOriginalNode, hClonedGraph) 

966  

967cdef CUresult cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

968 return cydriver._cuGraphNodeGetType(hNode, typename) 

969  

970cdef CUresult cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

971 return cydriver._cuGraphNodeGetContainingGraph(hNode, phGraph) 

972  

973cdef CUresult cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil: 

974 return cydriver._cuGraphNodeGetLocalId(hNode, nodeId) 

975  

976cdef CUresult cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil: 

977 return cydriver._cuGraphNodeGetToolsId(hNode, toolsNodeId) 

978  

979cdef CUresult cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil: 

980 return cydriver._cuGraphGetId(hGraph, graphId) 

981  

982cdef CUresult cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil: 

983 return cydriver._cuGraphExecGetId(hGraphExec, graphId) 

984  

985cdef CUresult cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil: 

986 return cydriver._cuGraphGetNodes(hGraph, nodes, numNodes) 

987  

988cdef CUresult cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil: 

989 return cydriver._cuGraphGetRootNodes(hGraph, rootNodes, numRootNodes) 

990  

991cdef CUresult cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil: 

992 return cydriver._cuGraphGetEdges_v2(hGraph, from_, to, edgeData, numEdges) 

993  

994cdef CUresult cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: 

995 return cydriver._cuGraphNodeGetDependencies_v2(hNode, dependencies, edgeData, numDependencies) 

996  

997cdef CUresult cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil: 

998 return cydriver._cuGraphNodeGetDependentNodes_v2(hNode, dependentNodes, edgeData, numDependentNodes) 

999  

1000cdef CUresult cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: 

1001 return cydriver._cuGraphAddDependencies_v2(hGraph, from_, to, edgeData, numDependencies) 

1002  

1003cdef CUresult cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: 

1004 return cydriver._cuGraphRemoveDependencies_v2(hGraph, from_, to, edgeData, numDependencies) 

1005  

1006cdef CUresult cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil: 

1007 return cydriver._cuGraphDestroyNode(hNode) 

1008  

1009cdef CUresult cuGraphInstantiate(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1010 return cydriver._cuGraphInstantiateWithFlags(phGraphExec, hGraph, flags) 

1011  

1012cdef CUresult cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1013 return cydriver._cuGraphInstantiateWithParams(phGraphExec, hGraph, instantiateParams) 

1014  

1015cdef CUresult cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1016 return cydriver._cuGraphExecGetFlags(hGraphExec, flags) 

1017  

1018cdef CUresult cuGraphExecKernelNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1019 return cydriver._cuGraphExecKernelNodeSetParams_v2(hGraphExec, hNode, nodeParams) 

1020  

1021cdef CUresult cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

1022 return cydriver._cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams, ctx) 

1023  

1024cdef CUresult cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: 

1025 return cydriver._cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams, ctx) 

1026  

1027cdef CUresult cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1028 return cydriver._cuGraphExecHostNodeSetParams(hGraphExec, hNode, nodeParams) 

1029  

1030cdef CUresult cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

1031 return cydriver._cuGraphExecChildGraphNodeSetParams(hGraphExec, hNode, childGraph) 

1032  

1033cdef CUresult cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

1034 return cydriver._cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) 

1035  

1036cdef CUresult cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: 

1037 return cydriver._cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) 

1038  

1039cdef CUresult cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1040 return cydriver._cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) 

1041  

1042cdef CUresult cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1043 return cydriver._cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) 

1044  

1045cdef CUresult cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil: 

1046 return cydriver._cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) 

1047  

1048cdef CUresult cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil: 

1049 return cydriver._cuGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) 

1050  

1051cdef CUresult cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1052 return cydriver._cuGraphUpload(hGraphExec, hStream) 

1053  

1054cdef CUresult cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1055 return cydriver._cuGraphLaunch(hGraphExec, hStream) 

1056  

1057cdef CUresult cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil: 

1058 return cydriver._cuGraphExecDestroy(hGraphExec) 

1059  

1060cdef CUresult cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil: 

1061 return cydriver._cuGraphDestroy(hGraph) 

1062  

1063cdef CUresult cuGraphExecUpdate(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil: 

1064 return cydriver._cuGraphExecUpdate_v2(hGraphExec, hGraph, resultInfo) 

1065  

1066cdef CUresult cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil: 

1067 return cydriver._cuGraphKernelNodeCopyAttributes(dst, src) 

1068  

1069cdef CUresult cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

1070 return cydriver._cuGraphKernelNodeGetAttribute(hNode, attr, value_out) 

1071  

1072cdef CUresult cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil: 

1073 return cydriver._cuGraphKernelNodeSetAttribute(hNode, attr, value) 

1074  

1075cdef CUresult cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1076 return cydriver._cuGraphDebugDotPrint(hGraph, path, flags) 

1077  

1078cdef CUresult cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1079 return cydriver._cuUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) 

1080  

1081cdef CUresult cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: 

1082 return cydriver._cuUserObjectRetain(object, count) 

1083  

1084cdef CUresult cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: 

1085 return cydriver._cuUserObjectRelease(object, count) 

1086  

1087cdef CUresult cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1088 return cydriver._cuGraphRetainUserObject(graph, object, count, flags) 

1089  

1090cdef CUresult cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: 

1091 return cydriver._cuGraphReleaseUserObject(graph, object, count) 

1092  

1093cdef CUresult cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1094 return cydriver._cuGraphAddNode_v2(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams) 

1095  

1096cdef CUresult cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1097 return cydriver._cuGraphNodeSetParams(hNode, nodeParams) 

1098  

1099cdef CUresult cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1100 return cydriver._cuGraphExecNodeSetParams(hGraphExec, hNode, nodeParams) 

1101  

1102cdef CUresult cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1103 return cydriver._cuGraphConditionalHandleCreate(pHandle_out, hGraph, ctx, defaultLaunchValue, flags) 

1104  

1105cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil: 

1106 return cydriver._cuOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) 

1107  

1108cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1109 return cydriver._cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) 

1110  

1111cdef CUresult cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil: 

1112 return cydriver._cuOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit) 

1113  

1114cdef CUresult cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1115 return cydriver._cuOccupancyMaxPotentialBlockSizeWithFlags(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags) 

1116  

1117cdef CUresult cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil: 

1118 return cydriver._cuOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) 

1119  

1120cdef CUresult cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil: 

1121 return cydriver._cuOccupancyMaxPotentialClusterSize(clusterSize, func, config) 

1122  

1123cdef CUresult cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil: 

1124 return cydriver._cuOccupancyMaxActiveClusters(numClusters, func, config) 

1125  

1126cdef CUresult cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1127 return cydriver._cuTexRefSetArray(hTexRef, hArray, Flags) 

1128  

1129cdef CUresult cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1130 return cydriver._cuTexRefSetMipmappedArray(hTexRef, hMipmappedArray, Flags) 

1131  

1132cdef CUresult cuTexRefSetAddress(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: 

1133 return cydriver._cuTexRefSetAddress_v2(ByteOffset, hTexRef, dptr, numbytes) 

1134  

1135cdef CUresult cuTexRefSetAddress2D(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil: 

1136 return cydriver._cuTexRefSetAddress2D_v3(hTexRef, desc, dptr, Pitch) 

1137  

1138cdef CUresult cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil: 

1139 return cydriver._cuTexRefSetFormat(hTexRef, fmt, NumPackedComponents) 

1140  

1141cdef CUresult cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil: 

1142 return cydriver._cuTexRefSetAddressMode(hTexRef, dim, am) 

1143  

1144cdef CUresult cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil: 

1145 return cydriver._cuTexRefSetFilterMode(hTexRef, fm) 

1146  

1147cdef CUresult cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil: 

1148 return cydriver._cuTexRefSetMipmapFilterMode(hTexRef, fm) 

1149  

1150cdef CUresult cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil: 

1151 return cydriver._cuTexRefSetMipmapLevelBias(hTexRef, bias) 

1152  

1153cdef CUresult cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil: 

1154 return cydriver._cuTexRefSetMipmapLevelClamp(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) 

1155  

1156cdef CUresult cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil: 

1157 return cydriver._cuTexRefSetMaxAnisotropy(hTexRef, maxAniso) 

1158  

1159cdef CUresult cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil: 

1160 return cydriver._cuTexRefSetBorderColor(hTexRef, pBorderColor) 

1161  

1162cdef CUresult cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1163 return cydriver._cuTexRefSetFlags(hTexRef, Flags) 

1164  

1165cdef CUresult cuTexRefGetAddress(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1166 return cydriver._cuTexRefGetAddress_v2(pdptr, hTexRef) 

1167  

1168cdef CUresult cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1169 return cydriver._cuTexRefGetArray(phArray, hTexRef) 

1170  

1171cdef CUresult cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1172 return cydriver._cuTexRefGetMipmappedArray(phMipmappedArray, hTexRef) 

1173  

1174cdef CUresult cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil: 

1175 return cydriver._cuTexRefGetAddressMode(pam, hTexRef, dim) 

1176  

1177cdef CUresult cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1178 return cydriver._cuTexRefGetFilterMode(pfm, hTexRef) 

1179  

1180cdef CUresult cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1181 return cydriver._cuTexRefGetFormat(pFormat, pNumChannels, hTexRef) 

1182  

1183cdef CUresult cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1184 return cydriver._cuTexRefGetMipmapFilterMode(pfm, hTexRef) 

1185  

1186cdef CUresult cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1187 return cydriver._cuTexRefGetMipmapLevelBias(pbias, hTexRef) 

1188  

1189cdef CUresult cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1190 return cydriver._cuTexRefGetMipmapLevelClamp(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef) 

1191  

1192cdef CUresult cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1193 return cydriver._cuTexRefGetMaxAnisotropy(pmaxAniso, hTexRef) 

1194  

1195cdef CUresult cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1196 return cydriver._cuTexRefGetBorderColor(pBorderColor, hTexRef) 

1197  

1198cdef CUresult cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1199 return cydriver._cuTexRefGetFlags(pFlags, hTexRef) 

1200  

1201cdef CUresult cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1202 return cydriver._cuTexRefCreate(pTexRef) 

1203  

1204cdef CUresult cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1205 return cydriver._cuTexRefDestroy(hTexRef) 

1206  

1207cdef CUresult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1208 return cydriver._cuSurfRefSetArray(hSurfRef, hArray, Flags) 

1209  

1210cdef CUresult cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil: 

1211 return cydriver._cuSurfRefGetArray(phArray, hSurfRef) 

1212  

1213cdef CUresult cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil: 

1214 return cydriver._cuTexObjectCreate(pTexObject, pResDesc, pTexDesc, pResViewDesc) 

1215  

1216cdef CUresult cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: 

1217 return cydriver._cuTexObjectDestroy(texObject) 

1218  

1219cdef CUresult cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: 

1220 return cydriver._cuTexObjectGetResourceDesc(pResDesc, texObject) 

1221  

1222cdef CUresult cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: 

1223 return cydriver._cuTexObjectGetTextureDesc(pTexDesc, texObject) 

1224  

1225cdef CUresult cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: 

1226 return cydriver._cuTexObjectGetResourceViewDesc(pResViewDesc, texObject) 

1227  

1228cdef CUresult cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil: 

1229 return cydriver._cuSurfObjectCreate(pSurfObject, pResDesc) 

1230  

1231cdef CUresult cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil: 

1232 return cydriver._cuSurfObjectDestroy(surfObject) 

1233  

1234cdef CUresult cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil: 

1235 return cydriver._cuSurfObjectGetResourceDesc(pResDesc, surfObject) 

1236  

1237cdef CUresult cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: 

1238 return cydriver._cuTensorMapEncodeTiled(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill) 

1239  

1240cdef CUresult cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: 

1241 return cydriver._cuTensorMapEncodeIm2col(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill) 

1242  

1243cdef CUresult cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: 

1244 return cydriver._cuTensorMapEncodeIm2colWide(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill) 

1245  

1246cdef CUresult cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil: 

1247 return cydriver._cuTensorMapReplaceAddress(tensorMap, globalAddress) 

1248  

1249cdef CUresult cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil: 

1250 return cydriver._cuDeviceCanAccessPeer(canAccessPeer, dev, peerDev) 

1251  

1252cdef CUresult cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1253 return cydriver._cuCtxEnablePeerAccess(peerContext, Flags) 

1254  

1255cdef CUresult cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil: 

1256 return cydriver._cuCtxDisablePeerAccess(peerContext) 

1257  

1258cdef CUresult cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil: 

1259 return cydriver._cuDeviceGetP2PAttribute(value, attrib, srcDevice, dstDevice) 

1260  

1261cdef CUresult cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil: 

1262 return cydriver._cuDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) 

1263  

1264cdef CUresult cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: 

1265 return cydriver._cuGraphicsUnregisterResource(resource) 

1266  

1267cdef CUresult cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil: 

1268 return cydriver._cuGraphicsSubResourceGetMappedArray(pArray, resource, arrayIndex, mipLevel) 

1269  

1270cdef CUresult cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: 

1271 return cydriver._cuGraphicsResourceGetMappedMipmappedArray(pMipmappedArray, resource) 

1272  

1273cdef CUresult cuGraphicsResourceGetMappedPointer(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: 

1274 return cydriver._cuGraphicsResourceGetMappedPointer_v2(pDevPtr, pSize, resource) 

1275  

1276cdef CUresult cuGraphicsResourceSetMapFlags(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1277 return cydriver._cuGraphicsResourceSetMapFlags_v2(resource, flags) 

1278  

1279cdef CUresult cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1280 return cydriver._cuGraphicsMapResources(count, resources, hStream) 

1281  

1282cdef CUresult cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1283 return cydriver._cuGraphicsUnmapResources(count, resources, hStream) 

1284  

1285cdef CUresult cuGetProcAddress(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil: 

1286 return cydriver._cuGetProcAddress_v2(symbol, pfn, cudaVersion, flags, symbolStatus) 

1287  

1288cdef CUresult cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: 

1289 return cydriver._cuCoredumpGetAttribute(attrib, value, size) 

1290  

1291cdef CUresult cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: 

1292 return cydriver._cuCoredumpGetAttributeGlobal(attrib, value, size) 

1293  

1294cdef CUresult cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: 

1295 return cydriver._cuCoredumpSetAttribute(attrib, value, size) 

1296  

1297cdef CUresult cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: 

1298 return cydriver._cuCoredumpSetAttributeGlobal(attrib, value, size) 

1299  

1300cdef CUresult cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil: 

1301 return cydriver._cuGetExportTable(ppExportTable, pExportTableId) 

1302  

1303cdef CUresult cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1304 return cydriver._cuGreenCtxCreate(phCtx, desc, dev, flags) 

1305  

1306cdef CUresult cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil: 

1307 return cydriver._cuGreenCtxDestroy(hCtx) 

1308  

1309cdef CUresult cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil: 

1310 return cydriver._cuCtxFromGreenCtx(pContext, hCtx) 

1311  

1312cdef CUresult cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

1313 return cydriver._cuDeviceGetDevResource(device, resource, typename) 

1314  

1315cdef CUresult cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

1316 return cydriver._cuCtxGetDevResource(hCtx, resource, typename) 

1317  

1318cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

1319 return cydriver._cuGreenCtxGetDevResource(hCtx, resource, typename) 

1320  

1321cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: 

1322 return cydriver._cuDevSmResourceSplitByCount(result, nbGroups, input, remainder, flags, minCount) 

1323  

1324cdef CUresult cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except ?CUDA_ERROR_NOT_FOUND nogil: 

1325 return cydriver._cuDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) 

1326  

1327cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil: 

1328 return cydriver._cuDevResourceGenerateDesc(phDesc, resources, nbResources) 

1329  

1330cdef CUresult cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

1331 return cydriver._cuGreenCtxRecordEvent(hCtx, hEvent) 

1332  

1333cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: 

1334 return cydriver._cuGreenCtxWaitEvent(hCtx, hEvent) 

1335  

1336cdef CUresult cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil: 

1337 return cydriver._cuStreamGetGreenCtx(hStream, phCtx) 

1338  

1339cdef CUresult cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil: 

1340 return cydriver._cuGreenCtxStreamCreate(phStream, greenCtx, flags, priority) 

1341  

1342cdef CUresult cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil: 

1343 return cydriver._cuGreenCtxGetId(greenCtx, greenCtxId) 

1344  

1345cdef CUresult cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: 

1346 return cydriver._cuStreamGetDevResource(hStream, resource, typename) 

1347  

1348cdef CUresult cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil: 

1349 return cydriver._cuLogsRegisterCallback(callbackFunc, userData, callback_out) 

1350  

1351cdef CUresult cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: 

1352 return cydriver._cuLogsUnregisterCallback(callback) 

1353  

1354cdef CUresult cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1355 return cydriver._cuLogsCurrent(iterator_out, flags) 

1356  

1357cdef CUresult cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1358 return cydriver._cuLogsDumpToFile(iterator, pathToFile, flags) 

1359  

1360cdef CUresult cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1361 return cydriver._cuLogsDumpToMemory(iterator, buffer, size, flags) 

1362  

1363cdef CUresult cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil: 

1364 return cydriver._cuCheckpointProcessGetRestoreThreadId(pid, tid) 

1365  

1366cdef CUresult cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil: 

1367 return cydriver._cuCheckpointProcessGetState(pid, state) 

1368  

1369cdef CUresult cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: 

1370 return cydriver._cuCheckpointProcessLock(pid, args) 

1371  

1372cdef CUresult cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: 

1373 return cydriver._cuCheckpointProcessCheckpoint(pid, args) 

1374  

1375cdef CUresult cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: 

1376 return cydriver._cuCheckpointProcessRestore(pid, args) 

1377  

1378cdef CUresult cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: 

1379 return cydriver._cuCheckpointProcessUnlock(pid, args) 

1380  

1381cdef CUresult cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil: 

1382 return cydriver._cuProfilerStart() 

1383  

1384cdef CUresult cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil: 

1385 return cydriver._cuProfilerStop() 

1386  

1387cdef CUresult cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1388 return cydriver._cuGraphicsEGLRegisterImage(pCudaResource, image, flags) 

1389  

1390cdef CUresult cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1391 return cydriver._cuEGLStreamConsumerConnect(conn, stream) 

1392  

1393cdef CUresult cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1394 return cydriver._cuEGLStreamConsumerConnectWithFlags(conn, stream, flags) 

1395  

1396cdef CUresult cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil: 

1397 return cydriver._cuEGLStreamConsumerDisconnect(conn) 

1398  

1399cdef CUresult cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil: 

1400 return cydriver._cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) 

1401  

1402cdef CUresult cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1403 return cydriver._cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) 

1404  

1405cdef CUresult cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil: 

1406 return cydriver._cuEGLStreamProducerConnect(conn, stream, width, height) 

1407  

1408cdef CUresult cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil: 

1409 return cydriver._cuEGLStreamProducerDisconnect(conn) 

1410  

1411cdef CUresult cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1412 return cydriver._cuEGLStreamProducerPresentFrame(conn, eglframe, pStream) 

1413  

1414cdef CUresult cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: 

1415 return cydriver._cuEGLStreamProducerReturnFrame(conn, eglframe, pStream) 

1416  

1417cdef CUresult cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil: 

1418 return cydriver._cuGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) 

1419  

1420cdef CUresult cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1421 return cydriver._cuEventCreateFromEGLSync(phEvent, eglSync, flags) 

1422  

1423cdef CUresult cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1424 return cydriver._cuGraphicsGLRegisterBuffer(pCudaResource, buffer, Flags) 

1425  

1426cdef CUresult cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1427 return cydriver._cuGraphicsGLRegisterImage(pCudaResource, image, target, Flags) 

1428  

1429cdef CUresult cuGLGetDevices(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil: 

1430 return cydriver._cuGLGetDevices_v2(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) 

1431  

1432cdef CUresult cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil: 

1433 return cydriver._cuVDPAUGetDevice(pDevice, vdpDevice, vdpGetProcAddress) 

1434  

1435cdef CUresult cuVDPAUCtxCreate(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil: 

1436 return cydriver._cuVDPAUCtxCreate_v2(pCtx, flags, device, vdpDevice, vdpGetProcAddress) 

1437  

1438cdef CUresult cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1439 return cydriver._cuGraphicsVDPAURegisterVideoSurface(pCudaResource, vdpSurface, flags) 

1440  

1441cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: 

1442 return cydriver._cuGraphicsVDPAURegisterOutputSurface(pCudaResource, vdpSurface, flags)