Skip to content

Commit 7832aaf

Browse files
authored
Codegen refresh (#1702)
* cython-gen refresh (no manual changes) * cybind refresh (no manual changes) * pre-commit auto-fix * Ad-hoc manual line break in cybind-generated file, as a quick temporary workaround to resolve a pre-commit failure. * cython-gen refresh after merging PR 259 * Fix pytest-rerunfailures plugin installation and flaky marker registration - Register 'flaky' marker in pytest.ini to eliminate warnings about unknown mark - Fix dependency group references in cuda_core/pyproject.toml to use {include-group = "test"} instead of "cuda-core[test]" extra - This ensures pytest-rerunfailures is properly installed so @pytest.mark.flaky() decorators work correctly Example failure fixed by this commit: https://github.com/NVIDIA/cuda-python/actions/runs/22501839950/job/65191834971?pr=1702 Made-with: Cursor * cybind refresh after merging 304 (no manual changes) * Exclude _fast_enum.py from ruff checks Exclude cuda_bindings/cuda/bindings/_internal/_fast_enum.py from ruff checks to fix pre-commit error. This file is auto-generated and contains a long line that exceeds the 120 character limit. Made-with: Cursor * cython-gen refresh after merging 263, using pending 265 (no manual changes) * cython-gen refresh after merging 265 (no manual changes)
1 parent 7a36d70 commit 7832aaf

53 files changed

Lines changed: 1420 additions & 77 deletions

Some content is hidden

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

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ repos:
1919
hooks:
2020
- id: ruff-check
2121
args: [--fix, --show-fixes]
22+
exclude: ^cuda_bindings/cuda/bindings/_internal/_fast_enum\.py$
2223
- id: ruff-format
2324

2425
- repo: local

cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
from cuda.bindings.cydriver cimport *
66

77
{{if 'cuGetErrorString' in found_functions}}

cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
{{if 'Windows' == platform.system()}}
66
import os
77
cimport cuda.bindings._lib.windll as windll

cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
from cuda.bindings.cynvrtc cimport *
66

77
{{if 'nvrtcGetErrorString' in found_functions}}

cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
{{if 'Windows' == platform.system()}}
66
import os
77
cimport cuda.bindings._lib.windll as windll

cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
include "../cyruntime_types.pxi"
66

77
include "../_lib/cyruntime/cyruntime.pxd"

cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
include "../cyruntime_functions.pxi"
66

77
import os

cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
cdef extern from "":
66
"""
77
#define CUDA_API_PER_THREAD_DEFAULT_STREAM

cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in

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

4-
# This code was automatically generated with version 13.1.0. Do not modify it directly.
4+
# This code was automatically generated with version 13.1.0, generator version 49a8141. Do not modify it directly.
55
cdef extern from "":
66
"""
77
#define CUDA_API_PER_THREAD_DEFAULT_STREAM

cuda_bindings/cuda/bindings/_internal/_fast_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

44

5-
# This code was automatically generated across versions from 12.9.1 to 13.1.1. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.1 to 13.1.1, generator version 0.3.1.dev1322+g646ce84ec. Do not modify it directly.
66

77

88
"""

0 commit comments

Comments
 (0)