From ef8e0e78ec337354379f1ac9a4242fc52eca8ab0 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Wed, 3 Sep 2025 10:12:20 -0500 Subject: [PATCH] Add AMD Copyright and MIT license designation. --- bin/build_flang-classic.sh | 4 ++++ bin/build_llvm-classic.sh | 4 ++++ bin/build_rocprofiler-register.sh | 4 ++++ bin/diff_driver.sh | 4 ++++ bin/rocmlibs/build_hipBLAS.sh | 4 ++++ bin/rocmlibs/build_powerinfer.sh | 4 ++++ bin/rocmlibs/build_rocBLAS.sh | 5 +++++ bin/rocmlibs/build_rocPRIM.sh | 5 +++++ bin/rocmlibs/build_rocSOLVER.sh | 5 +++++ bin/rocmlibs/build_rocSPARSE.sh | 5 +++++ bin/rocmlibs/build_rocmlibs.sh | 5 +++++ bin/rocmlibs/clone_rocmlibs.sh | 5 +++++ bin/rocmlibs/test_powerinfer.sh | 5 +++++ bin/run_OpenMP_VV.sh | 5 +++++ bin/run_accel2023.sh | 5 +++++ bin/run_hpc2021.sh | 5 +++++ test/smoke-asan/hip-gbo/hip-gbo.cpp | 4 ++++ test/smoke-asan/hip-hbo/hip-hbo.cpp | 4 ++++ test/smoke-asan/hip-uaf/hip-uaf.cpp | 4 ++++ test/smoke-asan/omp-device-free-uaf/omp-device-free-uaf.cpp | 4 ++++ .../omp-device-malloc-hbo/omp-device-malloc-hbo.cpp | 4 ++++ .../omp-dynamic-direct-lbo/omp-dynamic-direct-lbo.cpp | 4 ++++ .../omp-dynamic-indirect-lbo/omp-dynamic-indirect-lbo.cpp | 4 ++++ .../omp-function-parameters-lbo.cpp | 4 ++++ test/smoke-asan/omp-gbo/omp-gbo.cpp | 4 ++++ test/smoke-asan/omp-hbo/omp-hbo.cpp | 4 ++++ .../omp-static-direct-lbo/omp-static-direct-lbo.cpp | 4 ++++ .../omp-static-indirect-lbo/omp-static-indirect-lbo.cpp | 4 ++++ test/smoke-asan/omp-uaf/omp-uaf.cpp | 4 ++++ test/smoke-dev/clang-ifaces/clang-ifaces.c | 4 ++++ .../fast_fp_atomics_mi200_default_usm_map.cpp | 4 ++++ .../fast_fp_atomics_mi200_enable_coarse_grain_usm_map.cpp | 4 ++++ ...fast_fp_atomics_mi200_not_enable_coarse_grain_usm_map.cpp | 4 ++++ test/smoke-dev/gpurun-l-m/gpurun-l-m.c | 4 ++++ test/smoke-dev/gpurun-l-m/gpurun-l-m.py | 4 ++++ test/smoke-dev/lib-debug/lib-debug.c | 4 ++++ .../occupancy_based_opt_big_jump_loop.c | 4 ++++ .../occupancy_based_opt_xteam_reduction.c | 4 ++++ test/smoke-dev/occupancy-based-opt/occupancy_based_opt.c | 4 ++++ test/smoke-dev/red_bug_51/red_bug_51.cpp | 4 ++++ test/smoke-dev/reduction_team/reduction_team.c | 4 ++++ test/smoke-dev/reduction_teams/reduction_teams.c | 4 ++++ test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c | 4 ++++ test/smoke-dev/snap_red/snap_red.c | 4 ++++ test/smoke-dev/swdev-461650/swdev_461650.c | 4 ++++ test/smoke-dev/test-offload-profile-envar/veccopy.c | 4 ++++ test/smoke-dev/xteam-red-collapse/xteam_red_collapse.c | 4 ++++ test/smoke-dev/xteamr/test_xteamr.h | 3 +++ .../zero_copy.cpp | 4 ++++ .../zero-copy-xnack-enable-dgpu-map-enable-apu/zero_copy.cpp | 4 ++++ .../FNew-use_device_ptr/fortran_callable_init.hip | 4 ++++ .../big_jump_loop_nonrect_collapse.cpp | 4 ++++ test/smoke-fails/clang-506539/clang-506539.cpp | 4 ++++ test/smoke-fails/cuda_arch/cuda_arch.c | 4 ++++ .../noloop-nonrect-collapse/noloop_nonrect_collapse.cpp | 4 ++++ test/smoke-fails/omp_lock/omp_lock.c | 5 +++++ test/smoke-fails/swdev-507161/clang-507161.cpp | 3 +++ .../veccopy-ompt-target-emi-flush-trace/callbacks.h | 4 ++++ .../veccopy-ompt-target-emi-tracing.cpp | 4 ++++ test/smoke-fort/flang-target-associate-ptr/device-omp.c | 5 +++++ test/smoke-limbo/veccopy-ompt-target-tracing/callbacks.h | 4 ++++ .../veccopy-ompt-target-tracing.cpp | 4 ++++ test/smoke-limbo/xteam-red-split-2/xteam_red_split_2.c | 5 +++++ test/smoke/clang-337336/clang-337336.cpp | 4 ++++ .../hipmalloc-omptarget-multifile/hipMallocOmpTarget1.cpp | 4 ++++ .../hipmalloc-omptarget-multifile/hipMallocOmpTarget2.cpp | 4 ++++ test/smoke/hipmalloc-omptarget-multifile/main.cpp | 4 ++++ test/smoke/hipmalloc-omptarget-multifile/support.cpp | 4 ++++ test/smoke/hipmalloc-omptarget-multifile/support.h | 4 ++++ 69 files changed, 287 insertions(+) diff --git a/bin/build_flang-classic.sh b/bin/build_flang-classic.sh index 4ad0a1d2f9..b61228f56c 100755 --- a/bin/build_flang-classic.sh +++ b/bin/build_flang-classic.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # build_flang-classic.sh: Script to build the flang-classic binary driver # This driver will never call flang -fc1, it only calls binaries # clang, flang1, flang2, build elsewhere diff --git a/bin/build_llvm-classic.sh b/bin/build_llvm-classic.sh index b4fa8a6dc4..9c456233dc 100755 --- a/bin/build_llvm-classic.sh +++ b/bin/build_llvm-classic.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # build_llvm-classic.sh: Script to build the classic LLVM used by flang-classic. binary driver # This driver will never call flang -fc1, it only calls binaries # clang, flang1, flang2, built elsewhere diff --git a/bin/build_rocprofiler-register.sh b/bin/build_rocprofiler-register.sh index 489a9136ec..e3f66634c6 100755 --- a/bin/build_rocprofiler-register.sh +++ b/bin/build_rocprofiler-register.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # build_rocprofiler-register.sh: Script to build rocprofiler-register for AOMP standalone build # diff --git a/bin/diff_driver.sh b/bin/diff_driver.sh index d70ef82f59..7f1d0a3f38 100755 --- a/bin/diff_driver.sh +++ b/bin/diff_driver.sh @@ -1,4 +1,8 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT # # diff_driver.sh : show the diff between llvm driver code in trunk vs amd-staging # This checks both llvm-project/clang/lib/Driver and llvm-project/clang/include/clang/Driver diff --git a/bin/rocmlibs/build_hipBLAS.sh b/bin/rocmlibs/build_hipBLAS.sh index 6483123e42..76849c6ca2 100755 --- a/bin/rocmlibs/build_hipBLAS.sh +++ b/bin/rocmlibs/build_hipBLAS.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # build_hipblas.sh: Script to build and install hipblas library # # diff --git a/bin/rocmlibs/build_powerinfer.sh b/bin/rocmlibs/build_powerinfer.sh index c23ce6bd07..a6143a920d 100755 --- a/bin/rocmlibs/build_powerinfer.sh +++ b/bin/rocmlibs/build_powerinfer.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # build_powerinfer.sh: Script to build and install powerinfer library # This build is classic cmake, make, make install # diff --git a/bin/rocmlibs/build_rocBLAS.sh b/bin/rocmlibs/build_rocBLAS.sh index 5eef6f8cc5..cf244b6f3b 100755 --- a/bin/rocmlibs/build_rocBLAS.sh +++ b/bin/rocmlibs/build_rocBLAS.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # # build_rocblas.sh: Script to build and install rocblas library # diff --git a/bin/rocmlibs/build_rocPRIM.sh b/bin/rocmlibs/build_rocPRIM.sh index 32ff54e352..2c49ce1fe8 100755 --- a/bin/rocmlibs/build_rocPRIM.sh +++ b/bin/rocmlibs/build_rocPRIM.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # # build_rocPRIM.sh: Script to build and install rocPRIM library # diff --git a/bin/rocmlibs/build_rocSOLVER.sh b/bin/rocmlibs/build_rocSOLVER.sh index dd95c90a47..e511511d68 100755 --- a/bin/rocmlibs/build_rocSOLVER.sh +++ b/bin/rocmlibs/build_rocSOLVER.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # # build_rocSOLVER.sh: Script to build and install rocSOLVER library # diff --git a/bin/rocmlibs/build_rocSPARSE.sh b/bin/rocmlibs/build_rocSPARSE.sh index e16c20fcd4..bd9ef06c9e 100755 --- a/bin/rocmlibs/build_rocSPARSE.sh +++ b/bin/rocmlibs/build_rocSPARSE.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # # build_rocsparse.sh: Script to build and install rocsparse library # diff --git a/bin/rocmlibs/build_rocmlibs.sh b/bin/rocmlibs/build_rocmlibs.sh index 064c1fa712..f6697fd7a7 100755 --- a/bin/rocmlibs/build_rocmlibs.sh +++ b/bin/rocmlibs/build_rocmlibs.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # # build_rocmlibs.sh : Build and install ROCm libraries as AOMP components # diff --git a/bin/rocmlibs/clone_rocmlibs.sh b/bin/rocmlibs/clone_rocmlibs.sh index dac87fb085..7ed39dbe68 100755 --- a/bin/rocmlibs/clone_rocmlibs.sh +++ b/bin/rocmlibs/clone_rocmlibs.sh @@ -1,5 +1,10 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# +# # clone_rocmlibs.sh: Clone the set of rocmlibs # Currently AOMP needs 14 repositories. # diff --git a/bin/rocmlibs/test_powerinfer.sh b/bin/rocmlibs/test_powerinfer.sh index 6cd011fd41..ef3adba407 100755 --- a/bin/rocmlibs/test_powerinfer.sh +++ b/bin/rocmlibs/test_powerinfer.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # # test_powerinfer.sh: Script to test powerinfer installation with various models # diff --git a/bin/run_OpenMP_VV.sh b/bin/run_OpenMP_VV.sh index 91d7ac485e..c4fe6bb3e2 100755 --- a/bin/run_OpenMP_VV.sh +++ b/bin/run_OpenMP_VV.sh @@ -1,5 +1,10 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# +# # run_openmpvv.sh: # Script for running the OpenMP_VV suite found at # https://github.com/OpenMP-Validation-and-Verification/OpenMP_VV diff --git a/bin/run_accel2023.sh b/bin/run_accel2023.sh index 567f88aed6..ecefcce8b0 100755 --- a/bin/run_accel2023.sh +++ b/bin/run_accel2023.sh @@ -1,4 +1,9 @@ #! /usr/bin/env bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # ACCEL2023_SOURCE_DIR where to clone sources to. Default: AOMP_REPOS_TEST # ACCEL2023_BUILD_NUM_THREADS Number of parallel compile processes. Default: 32 diff --git a/bin/run_hpc2021.sh b/bin/run_hpc2021.sh index a25046dd30..8afa3df484 100755 --- a/bin/run_hpc2021.sh +++ b/bin/run_hpc2021.sh @@ -1,4 +1,9 @@ #! /usr/bin/env bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # HPC2021_SOURCE_DIR where to clone sources to. Default: AOMP_REPOS_TEST # HPC2021_BUILD_NUM_THREADS Number of parallel compile processes. Default: 32 diff --git a/test/smoke-asan/hip-gbo/hip-gbo.cpp b/test/smoke-asan/hip-gbo/hip-gbo.cpp index 23adcbd79c..3059aaf958 100644 --- a/test/smoke-asan/hip-gbo/hip-gbo.cpp +++ b/test/smoke-asan/hip-gbo/hip-gbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #define __HIP_PLATFORM_AMD__ 1 #include diff --git a/test/smoke-asan/hip-hbo/hip-hbo.cpp b/test/smoke-asan/hip-hbo/hip-hbo.cpp index 625cb59355..e5b8c7348a 100644 --- a/test/smoke-asan/hip-hbo/hip-hbo.cpp +++ b/test/smoke-asan/hip-hbo/hip-hbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #define __HIP_PLATFORM_AMD__ 1 #include diff --git a/test/smoke-asan/hip-uaf/hip-uaf.cpp b/test/smoke-asan/hip-uaf/hip-uaf.cpp index 8324ab4785..4f9ce0d2b8 100644 --- a/test/smoke-asan/hip-uaf/hip-uaf.cpp +++ b/test/smoke-asan/hip-uaf/hip-uaf.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #define __HIP_PLATFORM_AMD__ 1 #include diff --git a/test/smoke-asan/omp-device-free-uaf/omp-device-free-uaf.cpp b/test/smoke-asan/omp-device-free-uaf/omp-device-free-uaf.cpp index c00a3b02b1..af33819760 100644 --- a/test/smoke-asan/omp-device-free-uaf/omp-device-free-uaf.cpp +++ b/test/smoke-asan/omp-device-free-uaf/omp-device-free-uaf.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include int main(int argc, char *argv[]) { diff --git a/test/smoke-asan/omp-device-malloc-hbo/omp-device-malloc-hbo.cpp b/test/smoke-asan/omp-device-malloc-hbo/omp-device-malloc-hbo.cpp index b0792efea6..e53d59fbaf 100644 --- a/test/smoke-asan/omp-device-malloc-hbo/omp-device-malloc-hbo.cpp +++ b/test/smoke-asan/omp-device-malloc-hbo/omp-device-malloc-hbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include int main(int argc, char *argv[]) { diff --git a/test/smoke-asan/omp-dynamic-direct-lbo/omp-dynamic-direct-lbo.cpp b/test/smoke-asan/omp-dynamic-direct-lbo/omp-dynamic-direct-lbo.cpp index 146eb89fa7..19fab6bdfc 100644 --- a/test/smoke-asan/omp-dynamic-direct-lbo/omp-dynamic-direct-lbo.cpp +++ b/test/smoke-asan/omp-dynamic-direct-lbo/omp-dynamic-direct-lbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define LDS_ATTR __attribute__((address_space(3))) diff --git a/test/smoke-asan/omp-dynamic-indirect-lbo/omp-dynamic-indirect-lbo.cpp b/test/smoke-asan/omp-dynamic-indirect-lbo/omp-dynamic-indirect-lbo.cpp index 1e06d00d8e..1ee7d6929a 100644 --- a/test/smoke-asan/omp-dynamic-indirect-lbo/omp-dynamic-indirect-lbo.cpp +++ b/test/smoke-asan/omp-dynamic-indirect-lbo/omp-dynamic-indirect-lbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define LDS_ATTR volatile __attribute__((address_space(3))) diff --git a/test/smoke-asan/omp-function-parameters-lbo/omp-function-parameters-lbo.cpp b/test/smoke-asan/omp-function-parameters-lbo/omp-function-parameters-lbo.cpp index 9af33096e4..e3723c9518 100644 --- a/test/smoke-asan/omp-function-parameters-lbo/omp-function-parameters-lbo.cpp +++ b/test/smoke-asan/omp-function-parameters-lbo/omp-function-parameters-lbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define LDS_ATTR volatile __attribute__((address_space(3))) diff --git a/test/smoke-asan/omp-gbo/omp-gbo.cpp b/test/smoke-asan/omp-gbo/omp-gbo.cpp index bb96f742ea..1fb8d79073 100644 --- a/test/smoke-asan/omp-gbo/omp-gbo.cpp +++ b/test/smoke-asan/omp-gbo/omp-gbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define N 100 diff --git a/test/smoke-asan/omp-hbo/omp-hbo.cpp b/test/smoke-asan/omp-hbo/omp-hbo.cpp index d55b81e0aa..9939673af0 100644 --- a/test/smoke-asan/omp-hbo/omp-hbo.cpp +++ b/test/smoke-asan/omp-hbo/omp-hbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include int main(int argc, char *argv[]) { diff --git a/test/smoke-asan/omp-static-direct-lbo/omp-static-direct-lbo.cpp b/test/smoke-asan/omp-static-direct-lbo/omp-static-direct-lbo.cpp index 95cdd365fa..7f4b0c709f 100644 --- a/test/smoke-asan/omp-static-direct-lbo/omp-static-direct-lbo.cpp +++ b/test/smoke-asan/omp-static-direct-lbo/omp-static-direct-lbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define LDS_ATTR volatile __attribute__((address_space(3))) diff --git a/test/smoke-asan/omp-static-indirect-lbo/omp-static-indirect-lbo.cpp b/test/smoke-asan/omp-static-indirect-lbo/omp-static-indirect-lbo.cpp index da35374f88..76dbbe350a 100644 --- a/test/smoke-asan/omp-static-indirect-lbo/omp-static-indirect-lbo.cpp +++ b/test/smoke-asan/omp-static-indirect-lbo/omp-static-indirect-lbo.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define LDS_ATTR volatile __attribute__((address_space(3))) diff --git a/test/smoke-asan/omp-uaf/omp-uaf.cpp b/test/smoke-asan/omp-uaf/omp-uaf.cpp index c0a31e13ff..765e7e9f34 100644 --- a/test/smoke-asan/omp-uaf/omp-uaf.cpp +++ b/test/smoke-asan/omp-uaf/omp-uaf.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include int main(int argc, char *argv[]) { diff --git a/test/smoke-dev/clang-ifaces/clang-ifaces.c b/test/smoke-dev/clang-ifaces/clang-ifaces.c index 6d29f656c3..2b588c0629 100644 --- a/test/smoke-dev/clang-ifaces/clang-ifaces.c +++ b/test/smoke-dev/clang-ifaces/clang-ifaces.c @@ -1,3 +1,7 @@ +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT */ + #include #include diff --git a/test/smoke-dev/fast_fp_atomics_mi200_default_usm_map/fast_fp_atomics_mi200_default_usm_map.cpp b/test/smoke-dev/fast_fp_atomics_mi200_default_usm_map/fast_fp_atomics_mi200_default_usm_map.cpp index b40547cadb..2fc0432c0b 100644 --- a/test/smoke-dev/fast_fp_atomics_mi200_default_usm_map/fast_fp_atomics_mi200_default_usm_map.cpp +++ b/test/smoke-dev/fast_fp_atomics_mi200_default_usm_map/fast_fp_atomics_mi200_default_usm_map.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/fast_fp_atomics_mi200_enable_corase_grain_usm_map/fast_fp_atomics_mi200_enable_coarse_grain_usm_map.cpp b/test/smoke-dev/fast_fp_atomics_mi200_enable_corase_grain_usm_map/fast_fp_atomics_mi200_enable_coarse_grain_usm_map.cpp index e9f71c02bf..6d3e8e6bcb 100644 --- a/test/smoke-dev/fast_fp_atomics_mi200_enable_corase_grain_usm_map/fast_fp_atomics_mi200_enable_coarse_grain_usm_map.cpp +++ b/test/smoke-dev/fast_fp_atomics_mi200_enable_corase_grain_usm_map/fast_fp_atomics_mi200_enable_coarse_grain_usm_map.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/fast_fp_atomics_mi200_not_enable_corase_grain_usm_map/fast_fp_atomics_mi200_not_enable_coarse_grain_usm_map.cpp b/test/smoke-dev/fast_fp_atomics_mi200_not_enable_corase_grain_usm_map/fast_fp_atomics_mi200_not_enable_coarse_grain_usm_map.cpp index 5035e90842..dc3cd7fdc7 100644 --- a/test/smoke-dev/fast_fp_atomics_mi200_not_enable_corase_grain_usm_map/fast_fp_atomics_mi200_not_enable_coarse_grain_usm_map.cpp +++ b/test/smoke-dev/fast_fp_atomics_mi200_not_enable_corase_grain_usm_map/fast_fp_atomics_mi200_not_enable_coarse_grain_usm_map.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/gpurun-l-m/gpurun-l-m.c b/test/smoke-dev/gpurun-l-m/gpurun-l-m.c index 64c74dc0c7..efe0a8c640 100644 --- a/test/smoke-dev/gpurun-l-m/gpurun-l-m.c +++ b/test/smoke-dev/gpurun-l-m/gpurun-l-m.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/test/smoke-dev/gpurun-l-m/gpurun-l-m.py b/test/smoke-dev/gpurun-l-m/gpurun-l-m.py index cc814f0bef..da0336781b 100644 --- a/test/smoke-dev/gpurun-l-m/gpurun-l-m.py +++ b/test/smoke-dev/gpurun-l-m/gpurun-l-m.py @@ -1,3 +1,7 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. + +# SPDX-License-Identifier: MIT + # Python program to check the gpurun -m and -l options. import subprocess diff --git a/test/smoke-dev/lib-debug/lib-debug.c b/test/smoke-dev/lib-debug/lib-debug.c index ce79c906ff..4bbcc06c11 100644 --- a/test/smoke-dev/lib-debug/lib-debug.c +++ b/test/smoke-dev/lib-debug/lib-debug.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define N 10 diff --git a/test/smoke-dev/occupancy-based-opt-big-jump-loop/occupancy_based_opt_big_jump_loop.c b/test/smoke-dev/occupancy-based-opt-big-jump-loop/occupancy_based_opt_big_jump_loop.c index b68c9ade5a..541055204e 100755 --- a/test/smoke-dev/occupancy-based-opt-big-jump-loop/occupancy_based_opt_big_jump_loop.c +++ b/test/smoke-dev/occupancy-based-opt-big-jump-loop/occupancy_based_opt_big_jump_loop.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/occupancy-based-opt-xteam-reduction/occupancy_based_opt_xteam_reduction.c b/test/smoke-dev/occupancy-based-opt-xteam-reduction/occupancy_based_opt_xteam_reduction.c index 44503f25fa..6e548056a4 100644 --- a/test/smoke-dev/occupancy-based-opt-xteam-reduction/occupancy_based_opt_xteam_reduction.c +++ b/test/smoke-dev/occupancy-based-opt-xteam-reduction/occupancy_based_opt_xteam_reduction.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/occupancy-based-opt/occupancy_based_opt.c b/test/smoke-dev/occupancy-based-opt/occupancy_based_opt.c index 5c6ac7a54c..207b30625d 100644 --- a/test/smoke-dev/occupancy-based-opt/occupancy_based_opt.c +++ b/test/smoke-dev/occupancy-based-opt/occupancy_based_opt.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/red_bug_51/red_bug_51.cpp b/test/smoke-dev/red_bug_51/red_bug_51.cpp index 2d841d7afe..6ae5a73464 100644 --- a/test/smoke-dev/red_bug_51/red_bug_51.cpp +++ b/test/smoke-dev/red_bug_51/red_bug_51.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/reduction_team/reduction_team.c b/test/smoke-dev/reduction_team/reduction_team.c index cad63f94db..f1ba9e3fdf 100644 --- a/test/smoke-dev/reduction_team/reduction_team.c +++ b/test/smoke-dev/reduction_team/reduction_team.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/reduction_teams/reduction_teams.c b/test/smoke-dev/reduction_teams/reduction_teams.c index be84403a92..c51aa12bc9 100644 --- a/test/smoke-dev/reduction_teams/reduction_teams.c +++ b/test/smoke-dev/reduction_teams/reduction_teams.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c b/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c index ac38d05bd9..d71fd3fbe6 100644 --- a/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c +++ b/test/smoke-dev/rt-tuning-envar/rt_tuning_envar.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/snap_red/snap_red.c b/test/smoke-dev/snap_red/snap_red.c index 448a7ded27..e4fe23b3c1 100644 --- a/test/smoke-dev/snap_red/snap_red.c +++ b/test/smoke-dev/snap_red/snap_red.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #define N 10 diff --git a/test/smoke-dev/swdev-461650/swdev_461650.c b/test/smoke-dev/swdev-461650/swdev_461650.c index 482017d93d..aca077d397 100644 --- a/test/smoke-dev/swdev-461650/swdev_461650.c +++ b/test/smoke-dev/swdev-461650/swdev_461650.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/test-offload-profile-envar/veccopy.c b/test/smoke-dev/test-offload-profile-envar/veccopy.c index be6acf0b1c..b74fb84b0d 100644 --- a/test/smoke-dev/test-offload-profile-envar/veccopy.c +++ b/test/smoke-dev/test-offload-profile-envar/veccopy.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/xteam-red-collapse/xteam_red_collapse.c b/test/smoke-dev/xteam-red-collapse/xteam_red_collapse.c index 1c83629b97..1dbd52adf5 100644 --- a/test/smoke-dev/xteam-red-collapse/xteam_red_collapse.c +++ b/test/smoke-dev/xteam-red-collapse/xteam_red_collapse.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-dev/xteamr/test_xteamr.h b/test/smoke-dev/xteamr/test_xteamr.h index c14606a793..93243eed5c 100644 --- a/test/smoke-dev/xteamr/test_xteamr.h +++ b/test/smoke-dev/xteamr/test_xteamr.h @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT // Header file: overload_to_externs.h // generated by utility gen_externs diff --git a/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-disable-apu/zero_copy.cpp b/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-disable-apu/zero_copy.cpp index 06961db90a..c196d09a3b 100644 --- a/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-disable-apu/zero_copy.cpp +++ b/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-disable-apu/zero_copy.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include // When OMPX_DGPU_MAPS=0 and HSA_XNACK=1, it performs zero-copy on APU. diff --git a/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-enable-apu/zero_copy.cpp b/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-enable-apu/zero_copy.cpp index 2db5e038c7..71876d4d8d 100644 --- a/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-enable-apu/zero_copy.cpp +++ b/test/smoke-dev/zero-copy-xnack-enable-dgpu-map-enable-apu/zero_copy.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include // When OMPX_DGPU_MAPS=1 and HSA_XNACK=1, it performs copy on APU. diff --git a/test/smoke-fails/FNew-use_device_ptr/fortran_callable_init.hip b/test/smoke-fails/FNew-use_device_ptr/fortran_callable_init.hip index a6bd393bce..72fef8ca74 100644 --- a/test/smoke-fails/FNew-use_device_ptr/fortran_callable_init.hip +++ b/test/smoke-fails/FNew-use_device_ptr/fortran_callable_init.hip @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include "hip/hip_runtime.h" #include __global__ void init_array(float *arr1){ diff --git a/test/smoke-fails/big-jump-loop-nonrect-collapse/big_jump_loop_nonrect_collapse.cpp b/test/smoke-fails/big-jump-loop-nonrect-collapse/big_jump_loop_nonrect_collapse.cpp index aae2c53687..0d52a67156 100644 --- a/test/smoke-fails/big-jump-loop-nonrect-collapse/big_jump_loop_nonrect_collapse.cpp +++ b/test/smoke-fails/big-jump-loop-nonrect-collapse/big_jump_loop_nonrect_collapse.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-fails/clang-506539/clang-506539.cpp b/test/smoke-fails/clang-506539/clang-506539.cpp index b8e031d0cd..5293493d41 100644 --- a/test/smoke-fails/clang-506539/clang-506539.cpp +++ b/test/smoke-fails/clang-506539/clang-506539.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-fails/cuda_arch/cuda_arch.c b/test/smoke-fails/cuda_arch/cuda_arch.c index 0ecd9c6809..e4d278697f 100644 --- a/test/smoke-fails/cuda_arch/cuda_arch.c +++ b/test/smoke-fails/cuda_arch/cuda_arch.c @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + //#include int main(int argc, char **argv) { diff --git a/test/smoke-fails/noloop-nonrect-collapse/noloop_nonrect_collapse.cpp b/test/smoke-fails/noloop-nonrect-collapse/noloop_nonrect_collapse.cpp index fa0af8654d..e2cd037bc1 100644 --- a/test/smoke-fails/noloop-nonrect-collapse/noloop_nonrect_collapse.cpp +++ b/test/smoke-fails/noloop-nonrect-collapse/noloop_nonrect_collapse.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include diff --git a/test/smoke-fails/omp_lock/omp_lock.c b/test/smoke-fails/omp_lock/omp_lock.c index 78f3193965..141c758af3 100644 --- a/test/smoke-fails/omp_lock/omp_lock.c +++ b/test/smoke-fails/omp_lock/omp_lock.c @@ -1,3 +1,8 @@ +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT +*/ + #include #include diff --git a/test/smoke-fails/swdev-507161/clang-507161.cpp b/test/smoke-fails/swdev-507161/clang-507161.cpp index 413fcc8401..865ad9ee1e 100644 --- a/test/smoke-fails/swdev-507161/clang-507161.cpp +++ b/test/smoke-fails/swdev-507161/clang-507161.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT template class A { diff --git a/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/callbacks.h b/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/callbacks.h index 1305476534..f75623b82e 100644 --- a/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/callbacks.h +++ b/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/callbacks.h @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/veccopy-ompt-target-emi-tracing.cpp b/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/veccopy-ompt-target-emi-tracing.cpp index b50ad376c0..b7a70497db 100644 --- a/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/veccopy-ompt-target-emi-tracing.cpp +++ b/test/smoke-fails/veccopy-ompt-target-emi-flush-trace/veccopy-ompt-target-emi-tracing.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/test/smoke-fort/flang-target-associate-ptr/device-omp.c b/test/smoke-fort/flang-target-associate-ptr/device-omp.c index af2ad3121c..194bc8158b 100644 --- a/test/smoke-fort/flang-target-associate-ptr/device-omp.c +++ b/test/smoke-fort/flang-target-associate-ptr/device-omp.c @@ -1,3 +1,8 @@ +/* + Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT +*/ #include #include #include diff --git a/test/smoke-limbo/veccopy-ompt-target-tracing/callbacks.h b/test/smoke-limbo/veccopy-ompt-target-tracing/callbacks.h index a442c1e8b9..cfb5fd4147 100644 --- a/test/smoke-limbo/veccopy-ompt-target-tracing/callbacks.h +++ b/test/smoke-limbo/veccopy-ompt-target-tracing/callbacks.h @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/test/smoke-limbo/veccopy-ompt-target-tracing/veccopy-ompt-target-tracing.cpp b/test/smoke-limbo/veccopy-ompt-target-tracing/veccopy-ompt-target-tracing.cpp index e8721b85c7..e10ac3fc16 100644 --- a/test/smoke-limbo/veccopy-ompt-target-tracing/veccopy-ompt-target-tracing.cpp +++ b/test/smoke-limbo/veccopy-ompt-target-tracing/veccopy-ompt-target-tracing.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/test/smoke-limbo/xteam-red-split-2/xteam_red_split_2.c b/test/smoke-limbo/xteam-red-split-2/xteam_red_split_2.c index 8c2d174d49..59f333032a 100644 --- a/test/smoke-limbo/xteam-red-split-2/xteam_red_split_2.c +++ b/test/smoke-limbo/xteam-red-split-2/xteam_red_split_2.c @@ -1,3 +1,8 @@ +/* + Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT +*/ #include #include diff --git a/test/smoke/clang-337336/clang-337336.cpp b/test/smoke/clang-337336/clang-337336.cpp index 0ef59035a9..ab65c8aed6 100644 --- a/test/smoke/clang-337336/clang-337336.cpp +++ b/test/smoke/clang-337336/clang-337336.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget1.cpp b/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget1.cpp index a85878161a..a70c751bf6 100644 --- a/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget1.cpp +++ b/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget1.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include "hip/hip_runtime.h" #include "support.h" diff --git a/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget2.cpp b/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget2.cpp index 062b0d7cde..d8b61c4728 100644 --- a/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget2.cpp +++ b/test/smoke/hipmalloc-omptarget-multifile/hipMallocOmpTarget2.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include "hip/hip_runtime.h" #include "support.h" diff --git a/test/smoke/hipmalloc-omptarget-multifile/main.cpp b/test/smoke/hipmalloc-omptarget-multifile/main.cpp index 3b7588da19..af9637d1a3 100644 --- a/test/smoke/hipmalloc-omptarget-multifile/main.cpp +++ b/test/smoke/hipmalloc-omptarget-multifile/main.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include extern int hipMallocOmpTarget1(); diff --git a/test/smoke/hipmalloc-omptarget-multifile/support.cpp b/test/smoke/hipmalloc-omptarget-multifile/support.cpp index 0d7df4bb52..4128f876fc 100644 --- a/test/smoke/hipmalloc-omptarget-multifile/support.cpp +++ b/test/smoke/hipmalloc-omptarget-multifile/support.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include "hip/hip_runtime.h" #include "support.h" #include "stdio.h" diff --git a/test/smoke/hipmalloc-omptarget-multifile/support.h b/test/smoke/hipmalloc-omptarget-multifile/support.h index 3e2368e072..a28554c778 100644 --- a/test/smoke/hipmalloc-omptarget-multifile/support.h +++ b/test/smoke/hipmalloc-omptarget-multifile/support.h @@ -1,2 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + void printHipError(hipError_t error); bool hipCallSuccessful(hipError_t error);