@@ -392,6 +392,11 @@ cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkern
392392cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
393393{{endif}}
394394
395+ {{if 'cuKernelGetName' in found_functions}}
396+
397+ cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
398+ {{endif}}
399+
395400{{if 'cuMemGetInfo_v2' in found_functions}}
396401
397402cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1002,6 +1007,11 @@ cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback,
10021007cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil
10031008{{endif}}
10041009
1010+ {{if 'cuStreamBeginCaptureToGraph' in found_functions}}
1011+
1012+ cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil
1013+ {{endif}}
1014+
10051015{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}
10061016
10071017cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1022,11 +1032,21 @@ cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* capt
10221032cdef CUresult _cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil
10231033{{endif}}
10241034
1035+ {{if 'cuStreamGetCaptureInfo_v3' in found_functions}}
1036+
1037+ cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil
1038+ {{endif}}
1039+
10251040{{if 'cuStreamUpdateCaptureDependencies' in found_functions}}
10261041
10271042cdef CUresult _cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
10281043{{endif}}
10291044
1045+ {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}
1046+
1047+ cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
1048+ {{endif}}
1049+
10301050{{if 'cuStreamAttachMemAsync' in found_functions}}
10311051
10321052cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1187,6 +1207,11 @@ cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config)
11871207cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
11881208{{endif}}
11891209
1210+ {{if 'cuFuncGetName' in found_functions}}
1211+
1212+ cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
1213+ {{endif}}
1214+
11901215{{if 'cuLaunchKernel' in found_functions}}
11911216
11921217cdef 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
@@ -1487,26 +1512,51 @@ cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_
14871512cdef CUresult _cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil
14881513{{endif}}
14891514
1515+ {{if 'cuGraphGetEdges_v2' in found_functions}}
1516+
1517+ cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil
1518+ {{endif}}
1519+
14901520{{if 'cuGraphNodeGetDependencies' in found_functions}}
14911521
14921522cdef CUresult _cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
14931523{{endif}}
14941524
1525+ {{if 'cuGraphNodeGetDependencies_v2' in found_functions}}
1526+
1527+ cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
1528+ {{endif}}
1529+
14951530{{if 'cuGraphNodeGetDependentNodes' in found_functions}}
14961531
14971532cdef CUresult _cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil
14981533{{endif}}
14991534
1535+ {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}
1536+
1537+ cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil
1538+ {{endif}}
1539+
15001540{{if 'cuGraphAddDependencies' in found_functions}}
15011541
15021542cdef CUresult _cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
15031543{{endif}}
15041544
1545+ {{if 'cuGraphAddDependencies_v2' in found_functions}}
1546+
1547+ cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
1548+ {{endif}}
1549+
15051550{{if 'cuGraphRemoveDependencies' in found_functions}}
15061551
15071552cdef CUresult _cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
15081553{{endif}}
15091554
1555+ {{if 'cuGraphRemoveDependencies_v2' in found_functions}}
1556+
1557+ cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
1558+ {{endif}}
1559+
15101560{{if 'cuGraphDestroyNode' in found_functions}}
15111561
15121562cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1657,6 +1707,11 @@ cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsi
16571707cdef CUresult _cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
16581708{{endif}}
16591709
1710+ {{if 'cuGraphAddNode_v2' in found_functions}}
1711+
1712+ cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
1713+ {{endif}}
1714+
16601715{{if 'cuGraphNodeSetParams' in found_functions}}
16611716
16621717cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1667,6 +1722,11 @@ cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodePa
16671722cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
16681723{{endif}}
16691724
1725+ {{if 'cuGraphConditionalHandleCreate' in found_functions}}
1726+
1727+ cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
1728+ {{endif}}
1729+
16701730{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}
16711731
16721732cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil
0 commit comments