Skip to content

Commit b18951a

Browse files
authored
Merge branch 'main' into remove-deprecated
2 parents d2285b3 + ed4e31e commit b18951a

100 files changed

Lines changed: 3025 additions & 1938 deletions

File tree

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ repos:
123123
pass_filenames: false
124124
args: [--config-file=cuda_core/pyproject.toml, cuda_core/cuda/core]
125125
additional_dependencies:
126-
- numpy
126+
- numpy==2.4.2
127127

128128
- repo: https://github.com/rhysd/actionlint
129129
rev: "914e7df21a07ef503a81201c76d2b11c789d3fca" # frozen: v1.7.12

‎ci/tools/validate-release-wheels‎

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
from __future__ import annotations
1010

1111
import argparse
12-
import re
1312
import sys
1413
from collections import defaultdict
1514
from pathlib import Path
1615

16+
from check_release_notes import parse_version_from_tag
17+
1718
COMPONENT_TO_DISTRIBUTIONS: dict[str, set[str]] = {
1819
"cuda-core": {"cuda_core"},
1920
"cuda-bindings": {"cuda_bindings"},
@@ -22,11 +23,13 @@ COMPONENT_TO_DISTRIBUTIONS: dict[str, set[str]] = {
2223
"all": {"cuda_core", "cuda_bindings", "cuda_pathfinder", "cuda_python"},
2324
}
2425

25-
TAG_PATTERNS = (
26-
re.compile(r"^v(?P<version>\d+\.\d+\.\d+)"),
27-
re.compile(r"^cuda-core-v(?P<version>\d+\.\d+\.\d+)"),
28-
re.compile(r"^cuda-pathfinder-v(?P<version>\d+\.\d+\.\d+)"),
29-
)
26+
COMPONENT_TO_TAG_COMPONENTS: dict[str, tuple[str, ...]] = {
27+
"cuda-core": ("cuda-core",),
28+
"cuda-bindings": ("cuda-bindings",),
29+
"cuda-pathfinder": ("cuda-pathfinder",),
30+
"cuda-python": ("cuda-python",),
31+
"all": ("cuda-core", "cuda-bindings", "cuda-pathfinder", "cuda-python"),
32+
}
3033

3134

3235
def parse_args() -> argparse.Namespace:
@@ -42,15 +45,18 @@ def parse_args() -> argparse.Namespace:
4245
return parser.parse_args()
4346

4447

45-
def version_from_tag(tag: str) -> str:
46-
for pattern in TAG_PATTERNS:
47-
match = pattern.match(tag)
48-
if match:
49-
return match.group("version")
48+
def version_from_tag(tag: str, component: str) -> str:
49+
versions = {
50+
version
51+
for tag_component in COMPONENT_TO_TAG_COMPONENTS[component]
52+
if (version := parse_version_from_tag(tag, tag_component)) is not None
53+
}
54+
if len(versions) == 1:
55+
return versions.pop()
5056
raise ValueError(
5157
"Unsupported git tag format "
52-
f"{tag!r}; expected tags beginning with vX.Y.Z, cuda-core-vX.Y.Z, "
53-
"or cuda-pathfinder-vX.Y.Z."
58+
f"{tag!r} for component {component!r}; expected vX.Y.Z[.postN], "
59+
"cuda-core-vX.Y.Z[.postN], or cuda-pathfinder-vX.Y.Z[.postN]."
5460
)
5561

5662

@@ -64,7 +70,12 @@ def parse_wheel_dist_and_version(path: Path) -> tuple[str, str]:
6470

6571
def main() -> int:
6672
args = parse_args()
67-
expected_version = version_from_tag(args.git_tag)
73+
try:
74+
expected_version = version_from_tag(args.git_tag, args.component)
75+
except ValueError as exc:
76+
print(f"Error: {exc}", file=sys.stderr)
77+
return 1
78+
6879
expected_distributions = COMPONENT_TO_DISTRIBUTIONS[args.component]
6980
wheel_dir = Path(args.wheel_dir)
7081

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly.
4+
# This code was automatically generated with version 13.3.0. 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly.
4+
# This code was automatically generated with version 13.3.0. 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly.
4+
# This code was automatically generated with version 13.3.0. 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly.
4+
# This code was automatically generated with version 13.3.0. 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
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
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.0.1 to 13.3.0. Do not modify it directly.
55

66

77
"""

‎cuda_bindings/cuda/bindings/_internal/cudla.pxd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# This code was automatically generated across versions from 1.5.0 to 13.3.0, generator version 0.3.1.dev1465+gc5c5c8652. Do not modify it directly.
4+
# This code was automatically generated across versions from 1.5.0 to 13.3.0. Do not modify it directly.
55

66
from ..cycudla cimport *
77

‎cuda_bindings/cuda/bindings/_internal/cudla_linux.pyx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# This code was automatically generated across versions from 1.5.0 to 13.3.0, generator version 0.3.1.dev1465+gc5c5c8652. Do not modify it directly.
4+
# This code was automatically generated across versions from 1.5.0 to 13.3.0. Do not modify it directly.
55

66
from libc.stdint cimport intptr_t, uintptr_t
77

‎cuda_bindings/cuda/bindings/_internal/cufile.pxd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
# This code was automatically generated across versions from 12.9.1 to 13.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.1 to 13.3.0. Do not modify it directly.
66

77
from ..cycufile cimport *
88

0 commit comments

Comments
 (0)