Skip to content

Commit 26dec0e

Browse files
committed
Another attempt to fix the build
1 parent 6fb83b2 commit 26dec0e

5 files changed

Lines changed: 31 additions & 170 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cache_runtime
2020
cache_nvrtc
2121

2222
# CUDA Python specific (auto-generated)
23-
cuda_cindings/cuda/bindings/_internal/cudla.pyx
23+
cuda_bindings/cuda/bindings/_internal/cudla.pyx
2424
cuda_bindings/cuda/bindings/_internal/driver.pyx
2525
cuda_bindings/cuda/bindings/_internal/nvrtc.pyx
2626
cuda_bindings/cuda/bindings/_internal/cufile.pyx
@@ -29,6 +29,7 @@ cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx
2929
cuda_bindings/cuda/bindings/_internal/nvml.pyx
3030
cuda_bindings/cuda/bindings/_internal/nvvm.pyx
3131
cuda_bindings/cuda/bindings/_internal/runtime.pyx
32+
cuda_bindings/cuda/bindings/_internal/runtime_ptds.pyx
3233
cuda_bindings/cuda/bindings/utils/_get_handle.pyx
3334

3435
# Version files from setuptools_scm

cuda_bindings/cuda/bindings/_internal/_fast_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
#
4-
# This code was automatically generated across versions from 12.9.1 to 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly.
4+
# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly.
55

66

77
"""

cuda_bindings/cuda/bindings/_internal/driver_windows.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ cdef int _init_driver() except -1 nogil:
628628
if __cuGetProcAddress_v2 == NULL:
629629
raise RuntimeError("Failed to get __cuGetProcAddress_v2")
630630
_F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2
631-
631+
632632
if bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))):
633633
ptds_mode = CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM
634634
else:

cuda_bindings/cuda/bindings/cydriver.pxd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,12 +1328,12 @@ cdef extern from 'cuda.h':
13281328
CU_COREDUMP_LIGHTWEIGHT_FLAGS
13291329

13301330
cdef extern from 'cuda.h':
1331-
cdef enum CUgreenCtxCreate_flags:
1331+
ctypedef enum CUgreenCtxCreate_flags "CUgreenCtxCreate_flags":
13321332
CU_GREEN_CTX_NONE
13331333
CU_GREEN_CTX_DEFAULT_STREAM
13341334

13351335
cdef extern from 'cuda.h':
1336-
cdef enum CUdevResourceType:
1336+
ctypedef enum CUdevResourceType "CUdevResourceType":
13371337
CU_DEV_RESOURCE_TYPE_INVALID
13381338
CU_DEV_RESOURCE_TYPE_SM
13391339
CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG
@@ -1530,17 +1530,17 @@ cdef extern from 'cuda.h':
15301530
ctypedef CUstreamAtomicReductionDataType_enum CUstreamAtomicReductionDataType
15311531

15321532
cdef extern from 'cuda.h':
1533-
cdef enum CUdevSmResourceGroup_flags:
1533+
ctypedef enum CUdevSmResourceGroup_flags "CUdevSmResourceGroup_flags":
15341534
CU_DEV_SM_RESOURCE_GROUP_DEFAULT
15351535
CU_DEV_SM_RESOURCE_GROUP_BACKFILL
15361536

15371537
cdef extern from 'cuda.h':
1538-
cdef enum CUdevSmResourceSplitByCount_flags:
1538+
ctypedef enum CUdevSmResourceSplitByCount_flags "CUdevSmResourceSplitByCount_flags":
15391539
CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING
15401540
CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE
15411541

15421542
cdef extern from 'cuda.h':
1543-
cdef enum CUdevWorkqueueConfigScope:
1543+
ctypedef enum CUdevWorkqueueConfigScope "CUdevWorkqueueConfigScope":
15441544
CU_WORKQUEUE_SCOPE_DEVICE_CTX
15451545
CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED
15461546

@@ -3779,4 +3779,4 @@ cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295
37793779

37803780
cdef enum: RESOURCE_ABI_VERSION = 1
37813781

3782-
cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 42
3782+
cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 42

cuda_bindings/cuda/bindings/cyruntime.pxd

Lines changed: 21 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ cdef extern from 'driver_types.h':
161161
pass
162162
ctypedef cudaGraphicsResource* cudaGraphicsResource_t 'cudaGraphicsResource_t'
163163

164-
cdef extern from "":
164+
cdef extern from *:
165+
"""
166+
struct CUeglStreamConnection_st;
167+
typedef struct CUeglStreamConnection_st *cudaEglStreamConnection;
168+
"""
165169
cdef struct CUeglStreamConnection_st 'CUeglStreamConnection_st':
166170
pass
167171
ctypedef CUeglStreamConnection_st* cudaEglStreamConnection 'cudaEglStreamConnection'
@@ -1835,16 +1839,15 @@ cdef struct cuda_bindings_runtime__anon_pod5:
18351839
size_t height
18361840
size_t pitchInBytes
18371841

1838-
cdef extern from '':
1839-
cdef struct cudaEglPlaneDesc_st:
1840-
unsigned int width
1841-
unsigned int height
1842-
unsigned int depth
1843-
unsigned int pitch
1844-
unsigned int numChannels
1845-
cudaChannelFormatDesc channelDesc
1846-
unsigned int reserved[4]
1847-
ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc
1842+
cdef struct cudaEglPlaneDesc_st:
1843+
unsigned int width
1844+
unsigned int height
1845+
unsigned int depth
1846+
unsigned int pitch
1847+
unsigned int numChannels
1848+
cudaChannelFormatDesc channelDesc
1849+
unsigned int reserved[4]
1850+
ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc
18481851

18491852
cdef extern from '':
18501853
cdef struct cudaArraySparseProperties:
@@ -1981,14 +1984,13 @@ cdef union cuda_bindings_runtime__anon_pod1:
19811984
cuda_bindings_runtime__anon_pod5 pitch2D
19821985
cuda_bindings_runtime__anon_pod6 reserved
19831986

1984-
cdef extern from '':
1985-
cdef struct cudaEglFrame_st:
1986-
cuda_bindings_runtime__anon_pod35 frame
1987-
cudaEglPlaneDesc planeDesc[3]
1988-
unsigned int planeCount
1989-
cudaEglFrameType frameType
1990-
cudaEglColorFormat eglColorFormat
1991-
ctypedef cudaEglFrame_st cudaEglFrame
1987+
cdef struct cudaEglFrame_st:
1988+
cuda_bindings_runtime__anon_pod35 frame
1989+
cudaEglPlaneDesc planeDesc[3]
1990+
unsigned int planeCount
1991+
cudaEglFrameType frameType
1992+
cudaEglColorFormat eglColorFormat
1993+
ctypedef cudaEglFrame_st cudaEglFrame
19921994

19931995
cdef extern from '':
19941996
cdef struct cudaMemcpyNodeParams:
@@ -2640,148 +2642,6 @@ cdef extern from 'library_types.h':
26402642
MINOR_VERSION
26412643
PATCH_LEVEL
26422644

2643-
# Enum aliases using C tag names, required by lowpp layer (runtime.pxd) which uses
2644-
# the legacy_cython_gen naming convention of enum_name_enum for the C tag.
2645-
cdef extern from 'driver_types.h':
2646-
ctypedef enum cudaGraphDependencyType_enum 'cudaGraphDependencyType_enum':
2647-
cudaGraphDependencyTypeDefault
2648-
cudaGraphDependencyTypeProgrammatic
2649-
2650-
cdef extern from 'driver_types.h':
2651-
ctypedef enum cudaAsyncNotificationType_enum 'cudaAsyncNotificationType_enum':
2652-
cudaAsyncNotificationTypeOverBudget
2653-
2654-
cdef extern from 'driver_types.h':
2655-
ctypedef enum CUDAlogLevel_enum 'CUDAlogLevel_enum':
2656-
cudaLogLevelError
2657-
cudaLogLevelWarning
2658-
2659-
cdef extern from "":
2660-
ctypedef enum cudaEglFrameType_enum 'cudaEglFrameType_enum':
2661-
cudaEglFrameTypeArray
2662-
cudaEglFrameTypePitch
2663-
2664-
cdef extern from "":
2665-
ctypedef enum cudaEglResourceLocationFlags_enum 'cudaEglResourceLocationFlags_enum':
2666-
cudaEglResourceLocationSysmem
2667-
cudaEglResourceLocationVidmem
2668-
2669-
cdef extern from "":
2670-
ctypedef enum cudaEglColorFormat_enum 'cudaEglColorFormat_enum':
2671-
cudaEglColorFormatYUV420Planar
2672-
cudaEglColorFormatYUV420SemiPlanar
2673-
cudaEglColorFormatYUV422Planar
2674-
cudaEglColorFormatYUV422SemiPlanar
2675-
cudaEglColorFormatARGB
2676-
cudaEglColorFormatRGBA
2677-
cudaEglColorFormatL
2678-
cudaEglColorFormatR
2679-
cudaEglColorFormatYUV444Planar
2680-
cudaEglColorFormatYUV444SemiPlanar
2681-
cudaEglColorFormatYUYV422
2682-
cudaEglColorFormatUYVY422
2683-
cudaEglColorFormatABGR
2684-
cudaEglColorFormatBGRA
2685-
cudaEglColorFormatA
2686-
cudaEglColorFormatRG
2687-
cudaEglColorFormatAYUV
2688-
cudaEglColorFormatYVU444SemiPlanar
2689-
cudaEglColorFormatYVU422SemiPlanar
2690-
cudaEglColorFormatYVU420SemiPlanar
2691-
cudaEglColorFormatY10V10U10_444SemiPlanar
2692-
cudaEglColorFormatY10V10U10_420SemiPlanar
2693-
cudaEglColorFormatY12V12U12_444SemiPlanar
2694-
cudaEglColorFormatY12V12U12_420SemiPlanar
2695-
cudaEglColorFormatVYUY_ER
2696-
cudaEglColorFormatUYVY_ER
2697-
cudaEglColorFormatYUYV_ER
2698-
cudaEglColorFormatYVYU_ER
2699-
cudaEglColorFormatYUVA_ER
2700-
cudaEglColorFormatAYUV_ER
2701-
cudaEglColorFormatYUV444Planar_ER
2702-
cudaEglColorFormatYUV422Planar_ER
2703-
cudaEglColorFormatYUV420Planar_ER
2704-
cudaEglColorFormatYUV444SemiPlanar_ER
2705-
cudaEglColorFormatYUV422SemiPlanar_ER
2706-
cudaEglColorFormatYUV420SemiPlanar_ER
2707-
cudaEglColorFormatYVU444Planar_ER
2708-
cudaEglColorFormatYVU422Planar_ER
2709-
cudaEglColorFormatYVU420Planar_ER
2710-
cudaEglColorFormatYVU444SemiPlanar_ER
2711-
cudaEglColorFormatYVU422SemiPlanar_ER
2712-
cudaEglColorFormatYVU420SemiPlanar_ER
2713-
cudaEglColorFormatBayerRGGB
2714-
cudaEglColorFormatBayerBGGR
2715-
cudaEglColorFormatBayerGRBG
2716-
cudaEglColorFormatBayerGBRG
2717-
cudaEglColorFormatBayer10RGGB
2718-
cudaEglColorFormatBayer10BGGR
2719-
cudaEglColorFormatBayer10GRBG
2720-
cudaEglColorFormatBayer10GBRG
2721-
cudaEglColorFormatBayer12RGGB
2722-
cudaEglColorFormatBayer12BGGR
2723-
cudaEglColorFormatBayer12GRBG
2724-
cudaEglColorFormatBayer12GBRG
2725-
cudaEglColorFormatBayer14RGGB
2726-
cudaEglColorFormatBayer14BGGR
2727-
cudaEglColorFormatBayer14GRBG
2728-
cudaEglColorFormatBayer14GBRG
2729-
cudaEglColorFormatBayer20RGGB
2730-
cudaEglColorFormatBayer20BGGR
2731-
cudaEglColorFormatBayer20GRBG
2732-
cudaEglColorFormatBayer20GBRG
2733-
cudaEglColorFormatYVU444Planar
2734-
cudaEglColorFormatYVU422Planar
2735-
cudaEglColorFormatYVU420Planar
2736-
cudaEglColorFormatBayerIspRGGB
2737-
cudaEglColorFormatBayerIspBGGR
2738-
cudaEglColorFormatBayerIspGRBG
2739-
cudaEglColorFormatBayerIspGBRG
2740-
cudaEglColorFormatBayerBCCR
2741-
cudaEglColorFormatBayerRCCB
2742-
cudaEglColorFormatBayerCRBC
2743-
cudaEglColorFormatBayerCBRC
2744-
cudaEglColorFormatBayer10CCCC
2745-
cudaEglColorFormatBayer12BCCR
2746-
cudaEglColorFormatBayer12RCCB
2747-
cudaEglColorFormatBayer12CRBC
2748-
cudaEglColorFormatBayer12CBRC
2749-
cudaEglColorFormatBayer12CCCC
2750-
cudaEglColorFormatY
2751-
cudaEglColorFormatYUV420SemiPlanar_2020
2752-
cudaEglColorFormatYVU420SemiPlanar_2020
2753-
cudaEglColorFormatYUV420Planar_2020
2754-
cudaEglColorFormatYVU420Planar_2020
2755-
cudaEglColorFormatYUV420SemiPlanar_709
2756-
cudaEglColorFormatYVU420SemiPlanar_709
2757-
cudaEglColorFormatYUV420Planar_709
2758-
cudaEglColorFormatYVU420Planar_709
2759-
cudaEglColorFormatY10V10U10_420SemiPlanar_709
2760-
cudaEglColorFormatY10V10U10_420SemiPlanar_2020
2761-
cudaEglColorFormatY10V10U10_422SemiPlanar_2020
2762-
cudaEglColorFormatY10V10U10_422SemiPlanar
2763-
cudaEglColorFormatY10V10U10_422SemiPlanar_709
2764-
cudaEglColorFormatY_ER
2765-
cudaEglColorFormatY_709_ER
2766-
cudaEglColorFormatY10_ER
2767-
cudaEglColorFormatY10_709_ER
2768-
cudaEglColorFormatY12_ER
2769-
cudaEglColorFormatY12_709_ER
2770-
cudaEglColorFormatYUVA
2771-
cudaEglColorFormatYVYU
2772-
cudaEglColorFormatVYUY
2773-
cudaEglColorFormatY10V10U10_420SemiPlanar_ER
2774-
cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER
2775-
cudaEglColorFormatY10V10U10_444SemiPlanar_ER
2776-
cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER
2777-
cudaEglColorFormatY12V12U12_420SemiPlanar_ER
2778-
cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER
2779-
cudaEglColorFormatY12V12U12_444SemiPlanar_ER
2780-
cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER
2781-
cudaEglColorFormatUYVY709
2782-
cudaEglColorFormatUYVY709_ER
2783-
cudaEglColorFormatUYVY2020
2784-
27852645

27862646
# Static inline helpers from driver_functions.h — wrapped as cdef so the lowpp layer can cimport them.
27872647
cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil

0 commit comments

Comments
 (0)