Skip to content

Commit ef21f34

Browse files
committed
Add comments about the source of these files
1 parent 4bd3242 commit ef21f34

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ cimport cuda.bindings._bindings.cydriver as _cydriver
99
# use call into the static library directly.
1010
#
1111
# This is an ABI breaking change which can only happen in a major version bump.
12+
13+
# This file is included from cuda/bindings/_bindings/cyruntime.pxd.in but kept in a
14+
# separate file to keep it separated from the auto-generated code there.
15+
16+
# Prior to https://github.com/NVIDIA/cuda-python/pull/914, this was two
17+
# independent modules (c.b._lib.cyruntime.cyruntime and
18+
# c.b._lib.cyruntime.utils), but was merged into one.
19+
1220
cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil
1321
cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil
1422
cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil

cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
# These graphics API are the reimplemented version of what's supported by CUDA Runtime.
5+
# Issue https://github.com/NVIDIA/cuda-python/issues/488 will remove them by letting us
6+
# use call into the static library directly.
7+
8+
# This file is included from cuda/bindings/_bindings/cyruntime.pyx.in but kept in a
9+
# separate file to keep it separated from the auto-generated code there.
10+
11+
# Prior to https://github.com/NVIDIA/cuda-python/pull/914, this was two
12+
# independent modules (c.b._lib.cyruntime.cyruntime and
13+
# c.b._lib.cyruntime.utils), but was merged into one.
14+
415
from libc.string cimport memset
516
cimport cuda.bindings.cydriver as cydriver
617

0 commit comments

Comments
 (0)