Skip to content

Commit 5fc0148

Browse files
committed
rename cuda_feature from cu13 to cu{major} to support bumping major version, e.g. 13.x.x to 14.x.x
1 parent 2a5148c commit 5fc0148

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

ci/tools/check_pixi_cuda_version.py

Lines changed: 7 additions & 5 deletions
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-
"""Check pixi cu13 cuda-version pins track ci/versions.yml (cuda.build.version)."""
4+
"""Check pixi cuda-version pins track ci/versions.yml (cuda.build.version)."""
55

66
from __future__ import annotations
77

@@ -17,7 +17,7 @@
1717

1818

1919
def main() -> int:
20-
"""Verify cuda_bindings/cuda_core pixi cu13 pins match ci/versions.yml."""
20+
"""Verify cuda_bindings/cuda_core pixi pins match ci/versions.yml."""
2121
if not VERSIONS_FILE_PATH.is_file():
2222
print(f"error: {VERSIONS_FILE_PATH} not found", file=sys.stderr)
2323
return 2
@@ -29,6 +29,8 @@ def main() -> int:
2929

3030
major, minor, *_ = build_version.split(".")
3131
expected = f"{major}.{minor}.*"
32+
cuda_feature = f"cu{major}"
33+
3234
errors: list[str] = []
3335
for path in PIXI_FILES:
3436
if not path.is_file():
@@ -39,7 +41,7 @@ def main() -> int:
3941
rel = path.relative_to(ROOT)
4042
try:
4143
variants = data["workspace"]["build-variants"]["cuda-version"]
42-
cu13 = data["feature"]["cu13"]["dependencies"]["cuda-version"]
44+
cuda_pin = data["feature"][cuda_feature]["dependencies"]["cuda-version"]
4345
except KeyError as exc:
4446
print(f"error: {rel} missing cuda-version key: {exc}", file=sys.stderr)
4547
return 2
@@ -49,9 +51,9 @@ def main() -> int:
4951
f"does not include {expected!r} "
5052
f"(from ci/versions.yml cuda.build.version={build_version!r})"
5153
)
52-
if cu13 != expected:
54+
if cuda_pin != expected:
5355
errors.append(
54-
f"{rel}: [feature.cu13.dependencies] cuda-version={cu13!r} "
56+
f"{rel}: [feature.{cuda_feature}.dependencies] cuda-version={cuda_pin!r} "
5557
f"!= {expected!r} "
5658
f"(from ci/versions.yml cuda.build.version={build_version!r})"
5759
)

0 commit comments

Comments
 (0)