Skip to content

Commit 6782a64

Browse files
committed
Rebase to CTK 12.1
1 parent 9ac2d31 commit 6782a64

File tree

97 files changed

+5876
-1538
lines changed

Some content is hidden

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

97 files changed

+5876
-1538
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
11-
* Python 3.7 to 3.10
10+
* CUDA Toolkit 12.0 to 12.1
11+
* Python 3.8 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: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2022 NVIDIA Corporation. All rights reserved.
1+
# Copyright 2021-2023 NVIDIA Corporation. All rights reserved.
22
#
33
# Please refer to the NVIDIA end user license agreement (EULA) associated
44
# with this source code for terms and conditions that govern your use of
@@ -182,6 +182,11 @@ cdef CUresult _cuCtxGetDevice(CUdevice* device) nogil except ?CUDA_ERROR_NOT_FOU
182182
cdef CUresult _cuCtxGetFlags(unsigned int* flags) nogil except ?CUDA_ERROR_NOT_FOUND
183183
{{endif}}
184184

185+
{{if 'cuCtxSetFlags' in found_functions}}
186+
187+
cdef CUresult _cuCtxSetFlags(unsigned int flags) nogil except ?CUDA_ERROR_NOT_FOUND
188+
{{endif}}
189+
185190
{{if 'cuCtxGetId' in found_functions}}
186191

187192
cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) nogil except ?CUDA_ERROR_NOT_FOUND
@@ -877,6 +882,36 @@ cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUd
877882
cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) nogil except ?CUDA_ERROR_NOT_FOUND
878883
{{endif}}
879884

885+
{{if 'cuMulticastCreate' in found_functions}}
886+
887+
cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) nogil except ?CUDA_ERROR_NOT_FOUND
888+
{{endif}}
889+
890+
{{if 'cuMulticastAddDevice' in found_functions}}
891+
892+
cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) nogil except ?CUDA_ERROR_NOT_FOUND
893+
{{endif}}
894+
895+
{{if 'cuMulticastBindMem' in found_functions}}
896+
897+
cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) nogil except ?CUDA_ERROR_NOT_FOUND
898+
{{endif}}
899+
900+
{{if 'cuMulticastBindAddr' in found_functions}}
901+
902+
cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) nogil except ?CUDA_ERROR_NOT_FOUND
903+
{{endif}}
904+
905+
{{if 'cuMulticastUnbind' in found_functions}}
906+
907+
cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) nogil except ?CUDA_ERROR_NOT_FOUND
908+
{{endif}}
909+
910+
{{if 'cuMulticastGetGranularity' in found_functions}}
911+
912+
cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) nogil except ?CUDA_ERROR_NOT_FOUND
913+
{{endif}}
914+
880915
{{if 'cuPointerGetAttribute' in found_functions}}
881916

882917
cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) nogil except ?CUDA_ERROR_NOT_FOUND
@@ -1902,6 +1937,26 @@ cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource*
19021937
cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) nogil except ?CUDA_ERROR_NOT_FOUND
19031938
{{endif}}
19041939

1940+
{{if 'cuCoredumpGetAttribute' in found_functions}}
1941+
1942+
cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) nogil except ?CUDA_ERROR_NOT_FOUND
1943+
{{endif}}
1944+
1945+
{{if 'cuCoredumpGetAttributeGlobal' in found_functions}}
1946+
1947+
cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) nogil except ?CUDA_ERROR_NOT_FOUND
1948+
{{endif}}
1949+
1950+
{{if 'cuCoredumpSetAttribute' in found_functions}}
1951+
1952+
cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) nogil except ?CUDA_ERROR_NOT_FOUND
1953+
{{endif}}
1954+
1955+
{{if 'cuCoredumpSetAttributeGlobal' in found_functions}}
1956+
1957+
cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) nogil except ?CUDA_ERROR_NOT_FOUND
1958+
{{endif}}
1959+
19051960
{{if 'cuGetExportTable' in found_functions}}
19061961

19071962
cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) nogil except ?CUDA_ERROR_NOT_FOUND

0 commit comments

Comments
 (0)