From 9ec4b672883bb5fffae9ace00327d5ac6b91b5e3 Mon Sep 17 00:00:00 2001 From: Aviral Goel Date: Tue, 11 Nov 2025 14:26:01 -0500 Subject: [PATCH] chore(copyright): update copyright header for script directory (#3184) * chore(copyright): update copyright header for tile_engine directory * chore(copyright): update copyright header for script directory --------- Co-authored-by: Vidyasagar Ananthan [ROCm/composable_kernel commit: ab68c9d384587b9115b831e44616aedffe752efe] --- script/check_copyright_year.sh | 3 +++ script/clang-format-overwrite.sh | 3 +++ script/cmake-ck-dev.sh | 3 +++ script/convert_miopen_driver_to_profiler.py | 3 ++- script/count_vgpr.sh | 3 +++ .../generate_list_of_files_not_referenced_in_tests.py | 4 ++-- script/dependency-parser/main.py | 2 +- script/dependency-parser/src/enhanced_ninja_parser.py | 2 +- script/dependency-parser/src/selective_test_filter.py | 2 +- script/gemm_profile.sh | 2 +- script/hipclang_opt.sh | 3 +++ script/install_precommit.sh | 3 +++ script/launch_tests.sh | 2 +- script/ninja_json_converter.py | 2 +- script/process_perf_data.py | 3 +++ script/process_perf_data.sh | 3 +++ script/process_qa_data.sh | 3 +++ script/profile_batched_gemm.sh | 3 +++ script/profile_gemm.sh | 3 +++ script/profile_gemm_bilinear.sh | 3 +++ script/profile_grouped_conv_bwd_data.sh | 3 +++ script/profile_grouped_conv_bwd_weight.sh | 3 +++ script/profile_grouped_conv_fwd.sh | 3 +++ script/profile_grouped_conv_fwd_outelementop.sh | 3 +++ script/profile_grouped_gemm.sh | 3 +++ script/profile_mixed_gemm.sh | 3 +++ script/profile_onnx_gemm.sh | 3 +++ script/profile_permute_scale.sh | 3 +++ script/profile_reduce_no_index.sh | 3 +++ script/profile_reduce_with_index.sh | 3 +++ script/profile_resnet50.sh | 3 +++ script/profile_splitK_gemm.sh | 3 +++ script/remod_for_ck_tile.py | 3 +++ script/remove_exec_bit.sh | 2 +- script/run_ck_profiler_gemm_with_csv_shapes.py | 2 +- script/run_full_performance_tests.sh | 3 +++ script/run_gemm_performance_tests.sh | 3 +++ script/run_performance_tests.sh | 3 +++ script/sccache_wrapper.sh | 3 +++ script/test_convnd_fwd.sh | 3 +++ script/test_reduce_no_index.sh | 3 +++ script/uninstall_precommit.sh | 3 +++ 42 files changed, 108 insertions(+), 11 deletions(-) diff --git a/script/check_copyright_year.sh b/script/check_copyright_year.sh index f7709472ef..1b63c6b711 100755 --- a/script/check_copyright_year.sh +++ b/script/check_copyright_year.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + current_year=$(date +%Y) exit_code=0 diff --git a/script/clang-format-overwrite.sh b/script/clang-format-overwrite.sh index 74391ded28..23b57b9935 100755 --- a/script/clang-format-overwrite.sh +++ b/script/clang-format-overwrite.sh @@ -1,2 +1,5 @@ +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + find . -name deps -prune -o -name build -prune -o -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.h.in' -o -iname '*.hpp.in' -o -iname '*.cpp.in' -o -iname '*.cl' -o -iname '*.cuh' -o -iname '*.cu' -o -iname '*.inc' | grep -v 'build/' | grep -v 'include/rapidjson'| xargs -n 1 -P 16 -I{} -t sh -c 'clang-format-18 -i -style=file {}' git status --porcelain | awk '$1 != "D" && (match($2, "\\.cpp|.hpp|.inc|include/rapidjson/")) {print $2}' | xargs -n 1 -P 16 -I{} -t sh -c 'clang-format-18 -i -style=file {}' diff --git a/script/cmake-ck-dev.sh b/script/cmake-ck-dev.sh index 6220009b03..9643af1de0 100755 --- a/script/cmake-ck-dev.sh +++ b/script/cmake-ck-dev.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # exit when a command exits with non-zero status; also when an unbound variable is referenced set -eu # pipefail is supported by many shells, not supported by sh and dash diff --git a/script/convert_miopen_driver_to_profiler.py b/script/convert_miopen_driver_to_profiler.py index d814e0719c..5aff9c0a7f 100644 --- a/script/convert_miopen_driver_to_profiler.py +++ b/script/convert_miopen_driver_to_profiler.py @@ -1,5 +1,6 @@ +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT -# Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved. + # Convert miopen driver command to ck Profiler # Example: python3 ../script/convert_miopen_driver_to_profiler.py # /opt/rocm/bin/MIOpenDriver conv -n 32 -c 64 -H 28 -W 28 -k 64 -y 3 -x 3 diff --git a/script/count_vgpr.sh b/script/count_vgpr.sh index 07debc53a8..651a894db6 100755 --- a/script/count_vgpr.sh +++ b/script/count_vgpr.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + FILE=$1 for num in {0..255} diff --git a/script/dependency-parser/generate_list_of_files_not_referenced_in_tests.py b/script/dependency-parser/generate_list_of_files_not_referenced_in_tests.py index 8419b9491e..58bb9e8e93 100644 --- a/script/dependency-parser/generate_list_of_files_not_referenced_in_tests.py +++ b/script/dependency-parser/generate_list_of_files_not_referenced_in_tests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT -## Copyright © Advanced Micro Devices, Inc. or its affiliates. -## SPDX-License-Identifier: MIT # This script generate list of files that are not referenced from any test (list in JSON format) # Script only looks at not referenced files from three directories: include, library and profiler diff --git a/script/dependency-parser/main.py b/script/dependency-parser/main.py index 623ae05afd..f345362b26 100644 --- a/script/dependency-parser/main.py +++ b/script/dependency-parser/main.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT """ diff --git a/script/dependency-parser/src/enhanced_ninja_parser.py b/script/dependency-parser/src/enhanced_ninja_parser.py index ff6344a4c1..2ac8e8537a 100644 --- a/script/dependency-parser/src/enhanced_ninja_parser.py +++ b/script/dependency-parser/src/enhanced_ninja_parser.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT """ diff --git a/script/dependency-parser/src/selective_test_filter.py b/script/dependency-parser/src/selective_test_filter.py index d3228ef624..83f7f7eebe 100644 --- a/script/dependency-parser/src/selective_test_filter.py +++ b/script/dependency-parser/src/selective_test_filter.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT """ diff --git a/script/gemm_profile.sh b/script/gemm_profile.sh index 89419ca711..d3d66bcaa9 100755 --- a/script/gemm_profile.sh +++ b/script/gemm_profile.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT BIN=./bin/tile_example_gemm_weight_preshuffle diff --git a/script/hipclang_opt.sh b/script/hipclang_opt.sh index c51bd51d97..ba5636eeb6 100755 --- a/script/hipclang_opt.sh +++ b/script/hipclang_opt.sh @@ -1,3 +1,6 @@ +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + rm *.ll *.s BC_FILE=$1 diff --git a/script/install_precommit.sh b/script/install_precommit.sh index 545dcfa666..f80b06a95a 100755 --- a/script/install_precommit.sh +++ b/script/install_precommit.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + run_and_check() { "$@" status=$? diff --git a/script/launch_tests.sh b/script/launch_tests.sh index 52151b71f6..1911613023 100755 --- a/script/launch_tests.sh +++ b/script/launch_tests.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT # Get the directory where the script is located diff --git a/script/ninja_json_converter.py b/script/ninja_json_converter.py index e68f7ccfa3..5e974cf730 100644 --- a/script/ninja_json_converter.py +++ b/script/ninja_json_converter.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT """ diff --git a/script/process_perf_data.py b/script/process_perf_data.py index b35ba64041..5f81512a4c 100644 --- a/script/process_perf_data.py +++ b/script/process_perf_data.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import os import io import argparse diff --git a/script/process_perf_data.sh b/script/process_perf_data.sh index 50c84924f5..4786ddded0 100755 --- a/script/process_perf_data.sh +++ b/script/process_perf_data.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # # in order to run this script you'd need the following python packages: diff --git a/script/process_qa_data.sh b/script/process_qa_data.sh index 420453cddc..d56ef5c1ec 100755 --- a/script/process_qa_data.sh +++ b/script/process_qa_data.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # # in order to run this script you'd need the following python packages: diff --git a/script/profile_batched_gemm.sh b/script/profile_batched_gemm.sh index f90baaed68..bb7d61deec 100755 --- a/script/profile_batched_gemm.sh +++ b/script/profile_batched_gemm.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_gemm.sh b/script/profile_gemm.sh index b88159e74d..f766ca50fa 100755 --- a/script/profile_gemm.sh +++ b/script/profile_gemm.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_gemm_bilinear.sh b/script/profile_gemm_bilinear.sh index e6edefae85..057d7d7e49 100755 --- a/script/profile_gemm_bilinear.sh +++ b/script/profile_gemm_bilinear.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 DRIVER="../build/bin/ckProfiler" diff --git a/script/profile_grouped_conv_bwd_data.sh b/script/profile_grouped_conv_bwd_data.sh index a1d2f450c9..3805ed86cd 100755 --- a/script/profile_grouped_conv_bwd_data.sh +++ b/script/profile_grouped_conv_bwd_data.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_grouped_conv_bwd_weight.sh b/script/profile_grouped_conv_bwd_weight.sh index e3652202d4..146431621c 100755 --- a/script/profile_grouped_conv_bwd_weight.sh +++ b/script/profile_grouped_conv_bwd_weight.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_grouped_conv_fwd.sh b/script/profile_grouped_conv_fwd.sh index 9a974525ad..8491aecf9e 100755 --- a/script/profile_grouped_conv_fwd.sh +++ b/script/profile_grouped_conv_fwd.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_grouped_conv_fwd_outelementop.sh b/script/profile_grouped_conv_fwd_outelementop.sh index ac444a25c2..a0df8cd4c5 100755 --- a/script/profile_grouped_conv_fwd_outelementop.sh +++ b/script/profile_grouped_conv_fwd_outelementop.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_grouped_gemm.sh b/script/profile_grouped_gemm.sh index 8adb7c81ac..fe452d5cab 100755 --- a/script/profile_grouped_gemm.sh +++ b/script/profile_grouped_gemm.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_mixed_gemm.sh b/script/profile_mixed_gemm.sh index 383c7ea36e..a867bf3a77 100755 --- a/script/profile_mixed_gemm.sh +++ b/script/profile_mixed_gemm.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_onnx_gemm.sh b/script/profile_onnx_gemm.sh index c2721e7f59..ea18fc761e 100755 --- a/script/profile_onnx_gemm.sh +++ b/script/profile_onnx_gemm.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 DRIVER="../build/bin/ckProfiler" diff --git a/script/profile_permute_scale.sh b/script/profile_permute_scale.sh index 945d10f47b..31d6a06c5e 100755 --- a/script/profile_permute_scale.sh +++ b/script/profile_permute_scale.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_reduce_no_index.sh b/script/profile_reduce_no_index.sh index 66bfe1dcd3..3bae07906b 100755 --- a/script/profile_reduce_no_index.sh +++ b/script/profile_reduce_no_index.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + DRIVER="../build/bin/ckProfiler" VERIFY="-v $1" INIT=$2 diff --git a/script/profile_reduce_with_index.sh b/script/profile_reduce_with_index.sh index 43543f4430..943a590528 100755 --- a/script/profile_reduce_with_index.sh +++ b/script/profile_reduce_with_index.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + DRIVER="../build/bin/ckProfiler" VERIFY="-v $1" INIT=$2 diff --git a/script/profile_resnet50.sh b/script/profile_resnet50.sh index b55cb2ccef..ec6b32c0c8 100755 --- a/script/profile_resnet50.sh +++ b/script/profile_resnet50.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/profile_splitK_gemm.sh b/script/profile_splitK_gemm.sh index d62f0e4753..843d59c918 100755 --- a/script/profile_splitK_gemm.sh +++ b/script/profile_splitK_gemm.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## GPU visibility export HIP_VISIBLE_DEVICES=0 diff --git a/script/remod_for_ck_tile.py b/script/remod_for_ck_tile.py index 7601c9d619..feb50dc290 100755 --- a/script/remod_for_ck_tile.py +++ b/script/remod_for_ck_tile.py @@ -1,3 +1,6 @@ +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import os root_dir = os.getcwd() diff --git a/script/remove_exec_bit.sh b/script/remove_exec_bit.sh index 2926683d6a..0b3ca80422 100755 --- a/script/remove_exec_bit.sh +++ b/script/remove_exec_bit.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# Copyright (c) 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 diff --git a/script/run_ck_profiler_gemm_with_csv_shapes.py b/script/run_ck_profiler_gemm_with_csv_shapes.py index eb0eb9c920..2590e3942e 100644 --- a/script/run_ck_profiler_gemm_with_csv_shapes.py +++ b/script/run_ck_profiler_gemm_with_csv_shapes.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. # SPDX-License-Identifier: MIT -# Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved. # -*- coding: utf-8 -*- diff --git a/script/run_full_performance_tests.sh b/script/run_full_performance_tests.sh index 508200b21a..55740da097 100755 --- a/script/run_full_performance_tests.sh +++ b/script/run_full_performance_tests.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # # in order to run this script you'd first need to build the ckProfiler executable in ../build/bin/ # you would also need to set up some environment variables in order to diff --git a/script/run_gemm_performance_tests.sh b/script/run_gemm_performance_tests.sh index 12adad30f8..c72b2a760b 100755 --- a/script/run_gemm_performance_tests.sh +++ b/script/run_gemm_performance_tests.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # # in order to run this script you'd first need to build the ckProfiler executable in ../build/bin/ # run the script as "./run_gemm_performance_tests.sh diff --git a/script/run_performance_tests.sh b/script/run_performance_tests.sh index 4e13b59d34..9163e6d693 100755 --- a/script/run_performance_tests.sh +++ b/script/run_performance_tests.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # # in order to run this script you'd first need to build the ckProfiler executable in ../build/bin/ # run the script as "./run_performance_tests.sh diff --git a/script/sccache_wrapper.sh b/script/sccache_wrapper.sh index 30fd17e520..1a7e37881e 100755 --- a/script/sccache_wrapper.sh +++ b/script/sccache_wrapper.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + set -e COMPILERS_HASH_DIR=${COMPILERS_HASH_DIR:-"/tmp/.sccache"} SCCACHE_EXTRAFILES=${SCCACHE_EXTRAFILES:-"${COMPILERS_HASH_DIR}/rocm_compilers_hash_file"} diff --git a/script/test_convnd_fwd.sh b/script/test_convnd_fwd.sh index 8bd2c2fc33..d716caac15 100644 --- a/script/test_convnd_fwd.sh +++ b/script/test_convnd_fwd.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # set -e diff --git a/script/test_reduce_no_index.sh b/script/test_reduce_no_index.sh index b956303837..717a872c45 100755 --- a/script/test_reduce_no_index.sh +++ b/script/test_reduce_no_index.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + ## The following will be used for CI diff --git a/script/uninstall_precommit.sh b/script/uninstall_precommit.sh index b0d4d15166..394425acdd 100755 --- a/script/uninstall_precommit.sh +++ b/script/uninstall_precommit.sh @@ -1 +1,4 @@ +# Copyright (c) Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + pre-commit uninstall