diff --git a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_bf16.cpp b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_bf16.cpp index d1a8e7f30c..b1d732d95b 100644 --- a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_bf16.cpp +++ b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_bf16.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp16.cpp b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp16.cpp index 57b95b7412..e3f22a3186 100644 --- a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp16.cpp +++ b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp16.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp8.cpp b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp8.cpp index 82ac374efe..e58333b2f3 100644 --- a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp8.cpp +++ b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_fp8.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_int8.cpp b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_int8.cpp index 44d63a0d43..d534306115 100644 --- a/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_int8.cpp +++ b/example/31_batched_gemm_gemm/batched_gemm_gemm_wmma_cshuffle_v3_int8.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/example/68_gemm_add/run_gemm_add_example_wmma.inc b/example/68_gemm_add/run_gemm_add_example_wmma.inc index 7a6c8ea56d..d25c9538d8 100644 --- a/example/68_gemm_add/run_gemm_add_example_wmma.inc +++ b/example/68_gemm_add/run_gemm_add_example_wmma.inc @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once bool run_gemm_add(const ProblemSize& problem_size, const ExecutionConfig& config) diff --git a/example/68_gemm_add/run_gemm_add_example_xdl.inc b/example/68_gemm_add/run_gemm_add_example_xdl.inc index 97c0765c27..6f5f750d9c 100644 --- a/example/68_gemm_add/run_gemm_add_example_xdl.inc +++ b/example/68_gemm_add/run_gemm_add_example_xdl.inc @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once bool run_gemm_add(const ProblemSize& problem_size, const ExecutionConfig& config) diff --git a/example/69_gemm_add_relu/run_gemm_add_relu_example_wmma.inc b/example/69_gemm_add_relu/run_gemm_add_relu_example_wmma.inc index 27bd4de48d..5644dd8b80 100644 --- a/example/69_gemm_add_relu/run_gemm_add_relu_example_wmma.inc +++ b/example/69_gemm_add_relu/run_gemm_add_relu_example_wmma.inc @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once bool run_gemm_add_relu(const ProblemSize& problem_size, const ExecutionConfig& config) diff --git a/example/69_gemm_add_relu/run_gemm_add_relu_example_xdl.inc b/example/69_gemm_add_relu/run_gemm_add_relu_example_xdl.inc index e2d45fca43..a4a48540c0 100644 --- a/example/69_gemm_add_relu/run_gemm_add_relu_example_xdl.inc +++ b/example/69_gemm_add_relu/run_gemm_add_relu_example_xdl.inc @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once bool run_gemm_add_relu(const ProblemSize& problem_size, const ExecutionConfig& config) diff --git a/example/ck_tile/01_fmha/script/benchmark_fwd_v3.sh b/example/ck_tile/01_fmha/script/benchmark_fwd_v3.sh index a3f7d68eb3..efba9d5457 100755 --- a/example/ck_tile/01_fmha/script/benchmark_fwd_v3.sh +++ b/example/ck_tile/01_fmha/script/benchmark_fwd_v3.sh @@ -1,4 +1,8 @@ #!/bin/sh + +## Copyright © Advanced Micro Devices, Inc. or its affiliates. +## SPDX-License-Identifier: MIT + # TODO: run this script from CK root or build directory EXE="$(find . -name tile_example_fmha_fwd_v3 -type f | head -n 1)" VALID=0 diff --git a/include/ck_tile/ops/gemm/warp/warp_wmma_gemm.hpp b/include/ck_tile/ops/gemm/warp/warp_wmma_gemm.hpp index 9037ccea6c..dcbcb95492 100644 --- a/include/ck_tile/ops/gemm/warp/warp_wmma_gemm.hpp +++ b/include/ck_tile/ops/gemm/warp/warp_wmma_gemm.hpp @@ -1,5 +1,5 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. // SPDX-License-Identifier: MIT -// Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved. #pragma once diff --git a/include/ck_tile/utility/json_dump.hpp b/include/ck_tile/utility/json_dump.hpp index 26af906ed0..ece2a4ce1a 100644 --- a/include/ck_tile/utility/json_dump.hpp +++ b/include/ck_tile/utility/json_dump.hpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #ifdef CK_ENABLE_JSON_DUMP #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" 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 7a15fee128..8419b9491e 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,5 +1,8 @@ #!/usr/bin/env python3 +## 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 # CK needs to be built with ability to use dependency parser and generate dependencies diff --git a/test/ck_tile/gemm/test_gemm_pipeline_compv3_wmma.cpp b/test/ck_tile/gemm/test_gemm_pipeline_compv3_wmma.cpp index a71c4dc5d1..dc1fada04b 100644 --- a/test/ck_tile/gemm/test_gemm_pipeline_compv3_wmma.cpp +++ b/test/ck_tile/gemm/test_gemm_pipeline_compv3_wmma.cpp @@ -1,5 +1,5 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. // SPDX-License-Identifier: MIT -// Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved. #include "test_gemm_pipeline_kernel_types.hpp" #include "test_gemm_pipeline_wmma_base.hpp" diff --git a/test/ck_tile/gemm/test_gemm_pipeline_compv4_wmma.cpp b/test/ck_tile/gemm/test_gemm_pipeline_compv4_wmma.cpp index f10ecb3ea1..b868dfdf1c 100644 --- a/test/ck_tile/gemm/test_gemm_pipeline_compv4_wmma.cpp +++ b/test/ck_tile/gemm/test_gemm_pipeline_compv4_wmma.cpp @@ -1,5 +1,5 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. // SPDX-License-Identifier: MIT -// Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved. #include "test_gemm_pipeline_kernel_types.hpp" #include "test_gemm_pipeline_wmma_base.hpp" diff --git a/test/ck_tile/gemm/test_gemm_pipeline_mem_wmma.cpp b/test/ck_tile/gemm/test_gemm_pipeline_mem_wmma.cpp index 5af5e09b28..df10b82417 100644 --- a/test/ck_tile/gemm/test_gemm_pipeline_mem_wmma.cpp +++ b/test/ck_tile/gemm/test_gemm_pipeline_mem_wmma.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_wmma_base.hpp" #include "gtest/gtest.h" diff --git a/test/ck_tile/gemm/test_gemm_pipeline_persistent_wmma.cpp b/test/ck_tile/gemm/test_gemm_pipeline_persistent_wmma.cpp index 45ab586aa9..60ccfd1f15 100644 --- a/test/ck_tile/gemm/test_gemm_pipeline_persistent_wmma.cpp +++ b/test/ck_tile/gemm/test_gemm_pipeline_persistent_wmma.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_wmma_base.hpp" #include "gtest/gtest.h" diff --git a/test/ck_tile/gemm/test_gemm_pipeline_wmma_base.hpp b/test/ck_tile/gemm/test_gemm_pipeline_wmma_base.hpp index 8d8d245b6a..e33e90d268 100644 --- a/test/ck_tile/gemm/test_gemm_pipeline_wmma_base.hpp +++ b/test/ck_tile/gemm/test_gemm_pipeline_wmma_base.hpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once #include "test_gemm_pipeline_util.hpp" diff --git a/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_default2d.inc b/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_default2d.inc index 35b40a896a..3601519fda 100644 --- a/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_default2d.inc +++ b/test/ck_tile/gemm_multi_d/test_gemm_multi_d_ut_cases_default2d.inc @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once TYPED_TEST(TestCkTileGemmMultiD, TestCkTileGemmMultiDKBatch1Default_256x512x256) diff --git a/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_instance_builder.py b/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_instance_builder.py index 1d4b027716..e93b7a0c79 100644 --- a/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_instance_builder.py +++ b/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_instance_builder.py @@ -1,3 +1,6 @@ +## Copyright © Advanced Micro Devices, Inc. or its affiliates. +## SPDX-License-Identifier: MIT + import argparse import os import json diff --git a/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_profiler.hpp b/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_profiler.hpp index 7d212c934c..85b731c231 100644 --- a/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_profiler.hpp +++ b/tile_engine/ops/gemm_preshuffle/gemm_preshuffle_profiler.hpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc. or its affiliates. +// SPDX-License-Identifier: MIT + #pragma once #include "ck_tile/host/device_prop.hpp"