From 358f7ab28567e9daf5df900dbd8ea974c36f9517 Mon Sep 17 00:00:00 2001 From: Aviral Goel Date: Thu, 11 Sep 2025 15:27:08 -0400 Subject: [PATCH] fix(copyright header): add header to missing files (#2807) [ROCm/composable_kernel commit: f3239395dc9fd76ade58892cd23272b6f27e9a2c] --- .pre-commit-config.yaml | 12 ++++++------ example/ck_tile/15_fused_moe/main.cpp | 3 +++ example/ck_tile/39_copy/test_tile_example.sh | 3 +++ .../gemm/pipeline/gemm_pipeline_ag_bg_cr_comp_v5.hpp | 3 +++ script/dependency-parser/main.py | 3 +++ .../dependency-parser/src/enhanced_ninja_parser.py | 3 +++ .../dependency-parser/src/selective_test_filter.py | 3 +++ script/gemm_profile.sh | 2 ++ script/launch_tests.sh | 2 ++ script/ninja_json_converter.py | 2 ++ script/remod_for_ck_tile.sh | 2 ++ script/remove_exec_bit.sh | 2 ++ test/ck_tile/gemm/test_gemm_pipeline_persistent.cpp | 3 +++ .../test_gemm_multi_d_ut_cases_cshuffle.inc | 3 +++ .../gemm_weight_preshuffle/test_gemm_pipeline_wp.cpp | 3 +++ test_data/generate_model_configs.py | 3 +++ test_data/generate_test_dataset.sh | 3 +++ test_data/miopen_to_csv.py | 3 +++ test_data/run_model_with_miopen.py | 3 +++ 19 files changed, 55 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 664c5219e2..2d936d3a48 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,12 +6,12 @@ repos: entry: clang-format-18 -i --style=file language: system types_or: [c++, inc] - - id: copyright-year-checker - name: copyright-year-checker - entry: script/check_copyright_year.sh - verbose: false - language: script - types: [c++] + # - id: copyright-year-checker + # name: copyright-year-checker + # entry: script/check_copyright_year.sh + # verbose: false + # language: script + # types: [c++] - id: remove-exec-bit name: Remove executable bit from non-executable files entry: script/remove_exec_bit.sh diff --git a/example/ck_tile/15_fused_moe/main.cpp b/example/ck_tile/15_fused_moe/main.cpp index b6cc3b6543..5129b46231 100644 --- a/example/ck_tile/15_fused_moe/main.cpp +++ b/example/ck_tile/15_fused_moe/main.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/example/ck_tile/39_copy/test_tile_example.sh b/example/ck_tile/39_copy/test_tile_example.sh index fcd8c8e991..416338fac4 100755 --- a/example/ck_tile/39_copy/test_tile_example.sh +++ b/example/ck_tile/39_copy/test_tile_example.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + set -euo pipefail BIN="${BIN:-../../../build/bin/tile_example_copy}" diff --git a/include/ck_tile/ops/gemm/pipeline/gemm_pipeline_ag_bg_cr_comp_v5.hpp b/include/ck_tile/ops/gemm/pipeline/gemm_pipeline_ag_bg_cr_comp_v5.hpp index b05145890f..b83d37a790 100644 --- a/include/ck_tile/ops/gemm/pipeline/gemm_pipeline_ag_bg_cr_comp_v5.hpp +++ b/include/ck_tile/ops/gemm/pipeline/gemm_pipeline_ag_bg_cr_comp_v5.hpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "ck_tile/core.hpp" #include "ck_tile/ops/gemm/pipeline/gemm_pipeline_ag_bg_cr_scheduler.hpp" #include "ck_tile/ops/gemm/pipeline/gemm_pipeline_ag_bg_cr_base.hpp" diff --git a/script/dependency-parser/main.py b/script/dependency-parser/main.py index b8fd67ac49..5c956bca00 100644 --- a/script/dependency-parser/main.py +++ b/script/dependency-parser/main.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + """ Unified CLI for Ninja Dependency Analysis and Selective Testing diff --git a/script/dependency-parser/src/enhanced_ninja_parser.py b/script/dependency-parser/src/enhanced_ninja_parser.py index 087ab50640..725768a61f 100644 --- a/script/dependency-parser/src/enhanced_ninja_parser.py +++ b/script/dependency-parser/src/enhanced_ninja_parser.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + """ Enhanced Ninja Dependency Parser diff --git a/script/dependency-parser/src/selective_test_filter.py b/script/dependency-parser/src/selective_test_filter.py index f364d60d27..e8698d115d 100644 --- a/script/dependency-parser/src/selective_test_filter.py +++ b/script/dependency-parser/src/selective_test_filter.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + """ Selective Test Filter Tool diff --git a/script/gemm_profile.sh b/script/gemm_profile.sh index 487b90d640..89419ca711 100755 --- a/script/gemm_profile.sh +++ b/script/gemm_profile.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT BIN=./bin/tile_example_gemm_weight_preshuffle PREC=fp8 diff --git a/script/launch_tests.sh b/script/launch_tests.sh index 829ac82378..5e71e25478 100755 --- a/script/launch_tests.sh +++ b/script/launch_tests.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT # Get the directory where the script is located BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" diff --git a/script/ninja_json_converter.py b/script/ninja_json_converter.py index 92660dc7b3..7bfb2f867b 100644 --- a/script/ninja_json_converter.py +++ b/script/ninja_json_converter.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT """ Converts .ninja_log files into Chrome's about:tracing format. diff --git a/script/remod_for_ck_tile.sh b/script/remod_for_ck_tile.sh index 5c7a78d0cc..b017d2e1d6 100755 --- a/script/remod_for_ck_tile.sh +++ b/script/remod_for_ck_tile.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT # Get list of staged files STAGED_FILES=$(git diff --cached --name-only) diff --git a/script/remove_exec_bit.sh b/script/remove_exec_bit.sh index 25466d8c37..5b0035c8b8 100755 --- a/script/remove_exec_bit.sh +++ b/script/remove_exec_bit.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT for file in $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(cpp|hpp|txt|inc)$'); do if [ -x "$file" ]; then diff --git a/test/ck_tile/gemm/test_gemm_pipeline_persistent.cpp b/test/ck_tile/gemm/test_gemm_pipeline_persistent.cpp index 54410acf70..b3d433c466 100644 --- a/test/ck_tile/gemm/test_gemm_pipeline_persistent.cpp +++ b/test/ck_tile/gemm/test_gemm_pipeline_persistent.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "test_gemm_pipeline_kernel_types.hpp" #include "test_gemm_pipeline_util.hpp" #include "gtest/gtest.h" diff --git a/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_cshuffle.inc b/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_cshuffle.inc index 8d21c65692..798bbb1116 100644 --- a/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_cshuffle.inc +++ b/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_cshuffle.inc @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once TYPED_TEST(TestCkTileGemmMultiD, TestCkTileGemmMultiDKBatch1CShuffle_256x512x256) diff --git a/test/ck_tile/gemm_weight_preshuffle/test_gemm_pipeline_wp.cpp b/test/ck_tile/gemm_weight_preshuffle/test_gemm_pipeline_wp.cpp index de71c4682d..d836c501ae 100644 --- a/test/ck_tile/gemm_weight_preshuffle/test_gemm_pipeline_wp.cpp +++ b/test/ck_tile/gemm_weight_preshuffle/test_gemm_pipeline_wp.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "test_gemm_pipeline_kernel_types.hpp" #include "test_gemm_pipeline_util.hpp" #include "gtest/gtest.h" diff --git a/test_data/generate_model_configs.py b/test_data/generate_model_configs.py index 125655cef4..f852d781d6 100644 --- a/test_data/generate_model_configs.py +++ b/test_data/generate_model_configs.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + """ Generate Model Configuration Combinations for MIOpen Testing diff --git a/test_data/generate_test_dataset.sh b/test_data/generate_test_dataset.sh index 3fb8fa027b..1124311feb 100755 --- a/test_data/generate_test_dataset.sh +++ b/test_data/generate_test_dataset.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # Generate Comprehensive Convolution Test Dataset for CK # This script captures MIOpen commands from PyTorch models and generates test cases diff --git a/test_data/miopen_to_csv.py b/test_data/miopen_to_csv.py index ae8c187b43..3292584548 100644 --- a/test_data/miopen_to_csv.py +++ b/test_data/miopen_to_csv.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + """ Convert MIOpen Driver Commands to CSV Test Cases diff --git a/test_data/run_model_with_miopen.py b/test_data/run_model_with_miopen.py index 3d96e19f2f..596f6a4a37 100644 --- a/test_data/run_model_with_miopen.py +++ b/test_data/run_model_with_miopen.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + """ PyTorch Model Runner with MIOpen Command Logging using torchvision models