Skip to content

Commit 992998a

Browse files
committed
Fix Cython interop tests
1 parent f842321 commit 992998a

1 file changed

Lines changed: 78 additions & 26 deletions

File tree

cuda_bindings/cuda/bindings/cydriver.pxd

Lines changed: 78 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,107 +1741,159 @@ cdef extern from '<cuda.h>':
17411741

17421742

17431743
cdef extern from '<cuda.h>':
1744-
ctypedef void* CUcontext 'CUcontext'
1744+
ctypedef struct CUctx_st:
1745+
pass
1746+
ctypedef CUctx_st* CUcontext 'CUcontext'
17451747

17461748

17471749
cdef extern from '<cuda.h>':
1748-
ctypedef void* CUmodule 'CUmodule'
1750+
ctypedef struct CUmod_st:
1751+
pass
1752+
ctypedef CUmod_st* CUmodule 'CUmodule'
17491753

17501754

17511755
cdef extern from '<cuda.h>':
1752-
ctypedef void* CUfunction 'CUfunction'
1756+
ctypedef struct CUfunc_st:
1757+
pass
1758+
ctypedef CUfunc_st* CUfunction 'CUfunction'
17531759

17541760

17551761
cdef extern from '<cuda.h>':
1756-
ctypedef void* CUlibrary 'CUlibrary'
1762+
ctypedef struct CUlib_st:
1763+
pass
1764+
ctypedef CUlib_st* CUlibrary 'CUlibrary'
17571765

17581766

17591767
cdef extern from '<cuda.h>':
1760-
ctypedef void* CUkernel 'CUkernel'
1768+
ctypedef struct CUkern_st:
1769+
pass
1770+
ctypedef CUkern_st* CUkernel 'CUkernel'
17611771

17621772

17631773
cdef extern from '<cuda.h>':
1764-
ctypedef void* CUarray 'CUarray'
1774+
ctypedef struct CUarray_st:
1775+
pass
1776+
ctypedef CUarray_st* CUarray 'CUarray'
17651777

17661778

17671779
cdef extern from '<cuda.h>':
1768-
ctypedef void* CUmipmappedArray 'CUmipmappedArray'
1780+
ctypedef struct CUmipmappedArray_st:
1781+
pass
1782+
ctypedef CUmipmappedArray_st* CUmipmappedArray 'CUmipmappedArray'
17691783

17701784

17711785
cdef extern from '<cuda.h>':
1772-
ctypedef void* CUtexref 'CUtexref'
1786+
ctypedef struct CUtexref_st:
1787+
pass
1788+
ctypedef CUtexref_st* CUtexref 'CUtexref'
17731789

17741790

17751791
cdef extern from '<cuda.h>':
1776-
ctypedef void* CUsurfref 'CUsurfref'
1792+
ctypedef struct CUsurfref_st:
1793+
pass
1794+
ctypedef CUsurfref_st* CUsurfref 'CUsurfref'
17771795

17781796

17791797
cdef extern from '<cuda.h>':
1780-
ctypedef void* CUevent 'CUevent'
1798+
ctypedef struct CUevent_st:
1799+
pass
1800+
ctypedef CUevent_st* CUevent 'CUevent'
17811801

17821802

17831803
cdef extern from '<cuda.h>':
1784-
ctypedef void* CUstream 'CUstream'
1804+
ctypedef struct CUstream_st:
1805+
pass
1806+
ctypedef CUstream_st* CUstream 'CUstream'
17851807

17861808

17871809
cdef extern from '<cuda.h>':
1788-
ctypedef void* CUgraphicsResource 'CUgraphicsResource'
1810+
ctypedef struct CUgraphicsResource_st:
1811+
pass
1812+
ctypedef CUgraphicsResource_st* CUgraphicsResource 'CUgraphicsResource'
17891813

17901814

17911815
cdef extern from '<cuda.h>':
1792-
ctypedef void* CUexternalMemory 'CUexternalMemory'
1816+
ctypedef struct CUextMemory_st:
1817+
pass
1818+
ctypedef CUextMemory_st* CUexternalMemory 'CUexternalMemory'
17931819

17941820

17951821
cdef extern from '<cuda.h>':
1796-
ctypedef void* CUexternalSemaphore 'CUexternalSemaphore'
1822+
ctypedef struct CUextSemaphore_st:
1823+
pass
1824+
ctypedef CUextSemaphore_st* CUexternalSemaphore 'CUexternalSemaphore'
17971825

17981826

17991827
cdef extern from '<cuda.h>':
1800-
ctypedef void* CUgraph 'CUgraph'
1828+
ctypedef struct CUgraph_st:
1829+
pass
1830+
ctypedef CUgraph_st* CUgraph 'CUgraph'
18011831

18021832

18031833
cdef extern from '<cuda.h>':
1804-
ctypedef void* CUgraphNode 'CUgraphNode'
1834+
ctypedef struct CUgraphNode_st:
1835+
pass
1836+
ctypedef CUgraphNode_st* CUgraphNode 'CUgraphNode'
18051837

18061838

18071839
cdef extern from '<cuda.h>':
1808-
ctypedef void* CUgraphExec 'CUgraphExec'
1840+
ctypedef struct CUgraphExec_st:
1841+
pass
1842+
ctypedef CUgraphExec_st* CUgraphExec 'CUgraphExec'
18091843

18101844

18111845
cdef extern from '<cuda.h>':
1812-
ctypedef void* CUmemoryPool 'CUmemoryPool'
1846+
ctypedef struct CUmemPoolHandle_st:
1847+
pass
1848+
ctypedef CUmemPoolHandle_st* CUmemoryPool 'CUmemoryPool'
18131849

18141850

18151851
cdef extern from '<cuda.h>':
1816-
ctypedef void* CUuserObject 'CUuserObject'
1852+
ctypedef struct CUuserObject_st:
1853+
pass
1854+
ctypedef CUuserObject_st* CUuserObject 'CUuserObject'
18171855

18181856

18191857
cdef extern from '<cuda.h>':
1820-
ctypedef void* CUgraphDeviceNode 'CUgraphDeviceNode'
1858+
ctypedef struct CUgraphDeviceUpdatableNode_st:
1859+
pass
1860+
ctypedef CUgraphDeviceUpdatableNode_st* CUgraphDeviceNode 'CUgraphDeviceNode'
18211861

18221862

18231863
cdef extern from '<cuda.h>':
1824-
ctypedef void* CUasyncCallbackHandle 'CUasyncCallbackHandle'
1864+
ctypedef struct CUasyncCallbackEntry_st:
1865+
pass
1866+
ctypedef CUasyncCallbackEntry_st* CUasyncCallbackHandle 'CUasyncCallbackHandle'
18251867

18261868

18271869
cdef extern from '<cuda.h>':
1828-
ctypedef void* CUgreenCtx 'CUgreenCtx'
1870+
ctypedef struct CUgreenCtx_st:
1871+
pass
1872+
ctypedef CUgreenCtx_st* CUgreenCtx 'CUgreenCtx'
18291873

18301874

18311875
cdef extern from '<cuda.h>':
1832-
ctypedef void* CUlinkState 'CUlinkState'
1876+
ctypedef struct CUlinkState_st:
1877+
pass
1878+
ctypedef CUlinkState_st* CUlinkState 'CUlinkState'
18331879

18341880

18351881
cdef extern from '<cuda.h>':
1836-
ctypedef void* CUdevResourceDesc 'CUdevResourceDesc'
1882+
ctypedef struct CUdevResourceDesc_st:
1883+
pass
1884+
ctypedef CUdevResourceDesc_st* CUdevResourceDesc 'CUdevResourceDesc'
18371885

18381886

18391887
cdef extern from '<cuda.h>':
1840-
ctypedef void* CUlogsCallbackHandle 'CUlogsCallbackHandle'
1888+
ctypedef struct CUlogsCallbackEntry_st:
1889+
pass
1890+
ctypedef CUlogsCallbackEntry_st* CUlogsCallbackHandle 'CUlogsCallbackHandle'
18411891

18421892

18431893
cdef extern from '<cuda.h>':
1844-
ctypedef void* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle'
1894+
ctypedef struct CUcoredumpCallbackEntry_st:
1895+
pass
1896+
ctypedef CUcoredumpCallbackEntry_st* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle'
18451897

18461898

18471899
cdef extern from '<cuda.h>':

0 commit comments

Comments
 (0)