diff --git a/bin/build_flang-classic.sh b/bin/build_flang-classic.sh index 4ad0a1d2f..b61228f56 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 b4fa8a6dc..9c456233d 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 489a9136e..e3f66634c 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 d70ef82f5..7f1d0a3f3 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 6483123e4..76849c6ca 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 c23ce6bd0..a6143a920 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 5eef6f8cc..cf244b6f3 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 32ff54e35..2c49ce1fe 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 dd95c90a4..e511511d6 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 e16c20fcd..bd9ef06c9 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 064c1fa71..f6697fd7a 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 dac87fb08..7ed39dbe6 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 6cd011fd4..ef3adba40 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 91d7ac485..c4fe6bb3e 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 567f88aed..ecefcce8b 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 a25046dd3..8afa3df48 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 23adcbd79..3059aaf95 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 625cb5935..e5b8c7348 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 8324ab478..4f9ce0d2b 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 c00a3b02b..af3381976 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 b0792efea..e53d59fba 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 146eb89fa..19fab6bdf 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 1e06d00d8..1ee7d6929 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 9af33096e..e3723c951 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 bb96f742e..1fb8d7907 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 d55b81e0a..9939673af 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 95cdd365f..7f4b0c709 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 da35374f8..76dbbe350 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 c0a31e13f..765e7e9f3 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 6d29f656c..2b588c062 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 b40547cad..2fc0432c0 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 e9f71c02b..6d3e8e6bc 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 5035e9084..dc3cd7fdc 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 64c74dc0c..efe0a8c64 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 cc814f0be..da0336781 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 ce79c906f..4bbcc06c1 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 b68c9ade5..541055204 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 44503f25f..6e548056a 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 5c6ac7a54..207b30625 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 2d841d7af..6ae5a7346 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 cad63f94d..f1ba9e3fd 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 be84403a9..c51aa12bc 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 ac38d05bd..d71fd3fbe 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 448a7ded2..e4fe23b3c 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 482017d93..aca077d39 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 be6acf0b1..b74fb84b0 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 1c83629b9..1dbd52adf 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 c14606a79..93243eed5 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 06961db90..c196d09a3 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 2db5e038c..71876d4d8 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 a6bd393bc..72fef8ca7 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 aae2c5368..0d52a6715 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 b8e031d0c..5293493d4 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 0ecd9c680..e4d278697 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 fa0af8654..e2cd037bc 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 78f319396..141c758af 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 413fcc840..865ad9ee1 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 130547653..f75623b82 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 b50ad376c..b7a70497d 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 af2ad3121..194bc8158 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 a442c1e8b..cfb5fd414 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 e8721b85c..e10ac3fc1 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 8c2d174d4..59f333032 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 0ef59035a..ab65c8aed 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 a85878161..a70c751bf 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 062b0d7cd..d8b61c472 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 3b7588da1..af9637d1a 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 0d7df4bb5..4128f876f 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 3e2368e07..a28554c77 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);