Skip to content

Commit 2f9d31c

Browse files
committed
Rebase to CTK 12.3
1 parent 2ae98f9 commit 2f9d31c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+17965
-1937
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
CUDA Python is supported on all platforms that CUDA is supported. Specific dependencies are as follows:
88

99
* Driver: Linux (450.80.02 or later) Windows (456.38 or later)
10-
* CUDA Toolkit 12.0 to 12.2
11-
* Python 3.8 to 3.11
10+
* CUDA Toolkit 12.0 to 12.3
11+
* Python 3.9 to 3.11
1212

1313
Only the NVRTC redistributable component is required from the CUDA Toolkit. [CUDA Toolkit Documentation](https://docs.nvidia.com/cuda/index.html) Installation Guides can be used for guidance. Note that the NVRTC component in the Toolkit can be obtained via PiPy, Conda or Local Installer.
1414

cuda/_cuda/ccuda.pxd.in

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkern
392392
cdef 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

397402
cdef 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,
10021007
cdef 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

10071017
cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1022,11 +1032,21 @@ cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* capt
10221032
cdef 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

10271042
cdef 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

10321052
cdef 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)
11871207
cdef 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

11921217
cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1487,26 +1512,51 @@ cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_
14871512
cdef 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

14921522
cdef 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

14971532
cdef 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

15021542
cdef 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

15071552
cdef 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

15121562
cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1657,6 +1707,11 @@ cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsi
16571707
cdef 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

16621717
cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1667,6 +1722,11 @@ cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodePa
16671722
cdef 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

16721732
cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil

0 commit comments

Comments
 (0)