Repository navigation
[CI] Isolate standalone CUTLASS workflow changes #12414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| #!/usr/bin/env python3 | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| """Select PR compile-time benchmarks from their inputs before allocating runners.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import Sequence | ||
|
|
||
| import inspect_changes | ||
|
|
||
| # The benchmark builds public headers, not Python packages or C++ library tests. | ||
| # Reuse their ownership from the matrix classifier. | ||
| PUBLIC_PROJECTS = ("libcudacxx_public", "cub_public", "thrust_public") | ||
| BENCHMARK_INPUTS = ( | ||
| r"ci/compile_time/", | ||
| r"ci/build_compile_time_bench\.sh$", | ||
| r"\.github/workflows/compile-time-bench\.yml$", | ||
| ) | ||
|
|
||
|
|
||
| def compile_time_changed( | ||
| config: inspect_changes.Config, | ||
| dirty_files: Sequence[str], | ||
| ignored_files: Sequence[str], | ||
| ) -> bool: | ||
| # Include benchmark inputs ignored by the main matrix, while continuing to | ||
| # ignore documentation-only edits. | ||
| all_files = [ | ||
| path for path in (*dirty_files, *ignored_files) if not path.endswith(".md") | ||
| ] | ||
| inputs = inspect_changes.compile_patterns(BENCHMARK_INPUTS) | ||
| benchmark_changed = any( | ||
| inspect_changes.matches_any(inputs, path) for path in all_files | ||
| ) | ||
| project_files = inspect_changes.build_project_dirty_map(config, dirty_files) | ||
|
|
||
| # Preserve the classifier's conservative fallback for unknown infrastructure. | ||
| infrastructure_changed = bool(project_files[inspect_changes.CORE_PROJECT_KEY]) | ||
| public_changed = any(project_files[key] for key in PUBLIC_PROJECTS) | ||
| # Package config, install rules, and header-test generation live beside the | ||
| # public headers. Their changes also affect compile-time data. | ||
| cmake_inputs = inspect_changes.compile_patterns( | ||
| ( | ||
| r"(libcudacxx|cub|thrust|cudax)/(cmake/|CMakeLists\.txt$)", | ||
| r"cccl-version\.json$", | ||
| ) | ||
| ) | ||
| cmake_changed = any( | ||
| inspect_changes.matches_any(cmake_inputs, path) for path in all_files | ||
| ) | ||
| return ( | ||
| infrastructure_changed or public_changed or cmake_changed or benchmark_changed | ||
| ) | ||
|
|
||
|
|
||
| def main(argv: Sequence[str] | None = None) -> int: | ||
| args = inspect_changes.parse_args(argv) | ||
| config = inspect_changes.load_config(inspect_changes.CONFIG_PATH) | ||
| dirty_files, ignored_files = inspect_changes.collect_dirty_files(args, config) | ||
| enabled = compile_time_changed(config, dirty_files, ignored_files) | ||
| inspect_changes.write_output("compile_time_changed", str(enabled).lower()) | ||
| return 0 | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| raise SystemExit(main()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| FULL_BUILD=libcudacxx cub thrust cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python packaging stdpar nvbench_helper nvrtcc tidy | ||
| FULL_BUILD=libcudacxx cub thrust cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python cuda_coop_cutlass packaging stdpar nvbench_helper nvrtcc tidy | ||
| LITE_BUILD= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| python/cuda_coop_cutlass/cuda/coop/cutlass/_compiler/_runtime.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| FULL_BUILD=cuda_coop_cutlass | ||
| LITE_BUILD= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| FULL_BUILD=cuda_coop_python | ||
| FULL_BUILD=cuda_coop_python cuda_coop_cutlass | ||
| LITE_BUILD= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| FULL_BUILD=libcudacxx tidy | ||
| LITE_BUILD=cub thrust cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python packaging stdpar nvbench_helper | ||
| LITE_BUILD=cub thrust cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python cuda_coop_cutlass packaging stdpar nvbench_helper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| FULL_BUILD=libcudacxx tidy | ||
| LITE_BUILD=cub thrust cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python packaging stdpar nvbench_helper | ||
| LITE_BUILD=cub thrust cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python cuda_coop_cutlass packaging stdpar nvbench_helper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| FULL_BUILD=libcudacxx thrust tidy | ||
| LITE_BUILD=cub cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python packaging stdpar nvbench_helper | ||
| LITE_BUILD=cub cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 python_tsan cccl_c_stf python cuda_coop_python cuda_coop_cutlass packaging stdpar nvbench_helper |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.