diff --git a/srock-bin/build_cmake.sh b/srock-bin/build_cmake.sh index 20f4f5762..0c848fc95 100755 --- a/srock-bin/build_cmake.sh +++ b/srock-bin/build_cmake.sh @@ -1,5 +1,9 @@ #!/bin/bash - +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# SUPPLEMENTAL_COMPONENTS=${SUPPLEMENTAL_COMPONENTS:-openmpi silo hdf5 fftw ninja} PREREQUISITE_COMPONENTS=${PREREQUISITE_COMPONENTS:-cmake rocmsmilib hwloc aqlprofile rocm-core} diff --git a/srock-bin/build_srock.sh b/srock-bin/build_srock.sh index 6bf291ad0..b74ee81e6 100755 --- a/srock-bin/build_srock.sh +++ b/srock-bin/build_srock.sh @@ -1,5 +1,10 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# +# # build_srock.sh: Clone and build TheRock with amd-staging compiler. # # --- Start standard header to set SROCK environment variables ---- diff --git a/srock-bin/create_patch.sh b/srock-bin/create_patch.sh index 74720bf49..fc877d438 100755 --- a/srock-bin/create_patch.sh +++ b/srock-bin/create_patch.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # tr_create_patch.sh : Build set of patches to TheRock including submodules # # --- Start standard header to set AOMP environment variables ---- diff --git a/srock-bin/prebuild_srock.sh b/srock-bin/prebuild_srock.sh index 0e7edc70b..c8b941aa2 100755 --- a/srock-bin/prebuild_srock.sh +++ b/srock-bin/prebuild_srock.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # prebuild_srock.sh: Source this file from build_srock.sh # update the srock repo # clone or update hipfort repo diff --git a/srock-bin/srock_common_vars b/srock-bin/srock_common_vars index c42887523..387c2f655 100644 --- a/srock-bin/srock_common_vars +++ b/srock-bin/srock_common_vars @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # srock_common_vars: This file is sourced by srock scripts to set # set common SROCK environment variables. # diff --git a/test/smoke-asan/hip-managed-hbo/hip-managed-hbo.cpp b/test/smoke-asan/hip-managed-hbo/hip-managed-hbo.cpp index 315401c53..7dfcd0718 100644 --- a/test/smoke-asan/hip-managed-hbo/hip-managed-hbo.cpp +++ b/test/smoke-asan/hip-managed-hbo/hip-managed-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-managed-uaf/hip-managed-uaf.cpp b/test/smoke-asan/hip-managed-uaf/hip-managed-uaf.cpp index 65d08e806..92fac6740 100644 --- a/test/smoke-asan/hip-managed-uaf/hip-managed-uaf.cpp +++ b/test/smoke-asan/hip-managed-uaf/hip-managed-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-dev/aomp-issue376/aomp-issue376.c b/test/smoke-dev/aomp-issue376/aomp-issue376.c index 1937add1c..0f20302b2 100644 --- a/test/smoke-dev/aomp-issue376/aomp-issue376.c +++ b/test/smoke-dev/aomp-issue376/aomp-issue376.c @@ -1,3 +1,7 @@ +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT */ + /* Based on https://github.com/ROCm/aomp/issues/376 */ #include diff --git a/test/smoke-dev/clang-nested-parallel-for/clang-nested-parallel-for.c b/test/smoke-dev/clang-nested-parallel-for/clang-nested-parallel-for.c index 4224ecace..cd8d1867a 100644 --- a/test/smoke-dev/clang-nested-parallel-for/clang-nested-parallel-for.c +++ b/test/smoke-dev/clang-nested-parallel-for/clang-nested-parallel-for.c @@ -1,5 +1,8 @@ -#include +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT */ +#include int main () { int a[1024]; int i,j; diff --git a/test/smoke-dev/no-loop-over-subscription/no_loop_over_subscription.c b/test/smoke-dev/no-loop-over-subscription/no_loop_over_subscription.c index a3f8d8b67..3c1e363a4 100644 --- a/test/smoke-dev/no-loop-over-subscription/no_loop_over_subscription.c +++ b/test/smoke-dev/no-loop-over-subscription/no_loop_over_subscription.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/veccopy-ompt-target-cmake/performBuildRun.sh b/test/smoke-dev/veccopy-ompt-target-cmake/performBuildRun.sh index fa240420e..a3156cb80 100755 --- a/test/smoke-dev/veccopy-ompt-target-cmake/performBuildRun.sh +++ b/test/smoke-dev/veccopy-ompt-target-cmake/performBuildRun.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# set -x usage() { echo "Usage: $0 [-a ]" \ diff --git a/test/smoke-dev/veccopy-ompt-target-cmake/veccopy-ompt-target-cmake.cpp b/test/smoke-dev/veccopy-ompt-target-cmake/veccopy-ompt-target-cmake.cpp index f1d32e916..588179e42 100644 --- a/test/smoke-dev/veccopy-ompt-target-cmake/veccopy-ompt-target-cmake.cpp +++ b/test/smoke-dev/veccopy-ompt-target-cmake/veccopy-ompt-target-cmake.cpp @@ -1,3 +1,7 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// +// SPDX-License-Identifier: MIT + #include #include "OmptTester.h" diff --git a/test/smoke-dev/veccopy-ompt-target-emi-map/veccopy-ompt-target-emi-map.c b/test/smoke-dev/veccopy-ompt-target-emi-map/veccopy-ompt-target-emi-map.c index 2f5c96f6b..a7c87524d 100644 --- a/test/smoke-dev/veccopy-ompt-target-emi-map/veccopy-ompt-target-emi-map.c +++ b/test/smoke-dev/veccopy-ompt-target-emi-map/veccopy-ompt-target-emi-map.c @@ -1,3 +1,6 @@ +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT */ #include #include #include diff --git a/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-async/veccopy-ompt-target-emi-tracing-sync-async.c b/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-async/veccopy-ompt-target-emi-tracing-sync-async.c index 110363c9c..c5579f989 100644 --- a/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-async/veccopy-ompt-target-emi-tracing-sync-async.c +++ b/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-async/veccopy-ompt-target-emi-tracing-sync-async.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/veccopy-ompt-target-emi-tracing-sync-force/veccopy-ompt-target-emi-tracing-sync-force.c b/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-force/veccopy-ompt-target-emi-tracing-sync-force.c index fd8bd91f1..9df99790c 100644 --- a/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-force/veccopy-ompt-target-emi-tracing-sync-force.c +++ b/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-force/veccopy-ompt-target-emi-tracing-sync-force.c @@ -1,3 +1,6 @@ +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT */ #include #include #include diff --git a/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-size/veccopy-ompt-target-emi-tracing-sync-size.c b/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-size/veccopy-ompt-target-emi-tracing-sync-size.c index fd8bd91f1..775508d17 100644 --- a/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-size/veccopy-ompt-target-emi-tracing-sync-size.c +++ b/test/smoke-dev/veccopy-ompt-target-emi-tracing-sync-size/veccopy-ompt-target-emi-tracing-sync-size.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/veccopy-ompt-target-emi-tracing/veccopy-ompt-target-emi-tracing.c b/test/smoke-dev/veccopy-ompt-target-emi-tracing/veccopy-ompt-target-emi-tracing.c index fd8bd91f1..775508d17 100644 --- a/test/smoke-dev/veccopy-ompt-target-emi-tracing/veccopy-ompt-target-emi-tracing.c +++ b/test/smoke-dev/veccopy-ompt-target-emi-tracing/veccopy-ompt-target-emi-tracing.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/veccopy-ompt-target-emi/veccopy-ompt-target-emi.c b/test/smoke-dev/veccopy-ompt-target-emi/veccopy-ompt-target-emi.c index ff4993e99..15a4fe963 100644 --- a/test/smoke-dev/veccopy-ompt-target-emi/veccopy-ompt-target-emi.c +++ b/test/smoke-dev/veccopy-ompt-target-emi/veccopy-ompt-target-emi.c @@ -1,3 +1,6 @@ +/* Copyright © Advanced Micro Devices, Inc., or its affiliates. + + SPDX-License-Identifier: MIT */ #include #include #include diff --git a/test/smoke-dev/veccopy-ompt-target-map/veccopy-ompt-target-map.c b/test/smoke-dev/veccopy-ompt-target-map/veccopy-ompt-target-map.c index 030d01f1e..9c9f43538 100644 --- a/test/smoke-dev/veccopy-ompt-target-map/veccopy-ompt-target-map.c +++ b/test/smoke-dev/veccopy-ompt-target-map/veccopy-ompt-target-map.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/veccopy-ompt-target/veccopy-ompt-target.c b/test/smoke-dev/veccopy-ompt-target/veccopy-ompt-target.c index 7ad3a9879..8aad4539f 100644 --- a/test/smoke-dev/veccopy-ompt-target/veccopy-ompt-target.c +++ b/test/smoke-dev/veccopy-ompt-target/veccopy-ompt-target.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-teams/xteam_red_teams.c b/test/smoke-dev/xteam-red-teams/xteam_red_teams.c index a38d8edf3..45a6383b4 100644 --- a/test/smoke-dev/xteam-red-teams/xteam_red_teams.c +++ b/test/smoke-dev/xteam-red-teams/xteam_red_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-fort-dev/chk-intdo-permutation/intdo-permutation.f90 b/test/smoke-fort-dev/chk-intdo-permutation/intdo-permutation.f90 index a8a8e7f35..29a2e91fd 100644 --- a/test/smoke-fort-dev/chk-intdo-permutation/intdo-permutation.f90 +++ b/test/smoke-fort-dev/chk-intdo-permutation/intdo-permutation.f90 @@ -1,4 +1,8 @@ - +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! ! RUN: %flang %flags %openmp_flags -fopenmp-version=60 %s -o %t.exe ! RUN: %t.exe | FileCheck %s --match-full-lines diff --git a/test/smoke-fort-dev/chk-intdo/intdo.f90 b/test/smoke-fort-dev/chk-intdo/intdo.f90 index fe6820f41..76703e9b4 100644 --- a/test/smoke-fort-dev/chk-intdo/intdo.f90 +++ b/test/smoke-fort-dev/chk-intdo/intdo.f90 @@ -1,4 +1,8 @@ - +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! ! RUN: %flang %flags %openmp_flags -fopenmp-version=60 %s -o %t.exe ! RUN: %t.exe | FileCheck %s --match-full-lines diff --git a/test/smoke-fort-dev/device_aassign/device_aassign.f90 b/test/smoke-fort-dev/device_aassign/device_aassign.f90 index 68da97d60..9b6273d26 100644 --- a/test/smoke-fort-dev/device_aassign/device_aassign.f90 +++ b/test/smoke-fort-dev/device_aassign/device_aassign.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! module mod implicit none contains diff --git a/test/smoke-fort-dev/device_intrinsics/device_intrinsics.f90 b/test/smoke-fort-dev/device_intrinsics/device_intrinsics.f90 index 073c117a0..b6a8cfcb0 100644 --- a/test/smoke-fort-dev/device_intrinsics/device_intrinsics.f90 +++ b/test/smoke-fort-dev/device_intrinsics/device_intrinsics.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! module mod implicit none contains diff --git a/test/smoke-fort-dev/flang-315421/ft_data.f90 b/test/smoke-fort-dev/flang-315421/ft_data.f90 index 108bfd95b..7df06c893 100644 --- a/test/smoke-fort-dev/flang-315421/ft_data.f90 +++ b/test/smoke-fort-dev/flang-315421/ft_data.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! !--------------------------------------------------------------------- !--------------------------------------------------------------------- ! diff --git a/test/smoke-fort-dev/flang-315421/npbparams.h b/test/smoke-fort-dev/flang-315421/npbparams.h index 94a4ab7db..9cf7bb454 100644 --- a/test/smoke-fort-dev/flang-315421/npbparams.h +++ b/test/smoke-fort-dev/flang-315421/npbparams.h @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! ! CLASS = A ! ! diff --git a/test/smoke-fort-dev/flang-315421/randdp.f90 b/test/smoke-fort-dev/flang-315421/randdp.f90 index fa20c4ded..b972a8c78 100644 --- a/test/smoke-fort-dev/flang-315421/randdp.f90 +++ b/test/smoke-fort-dev/flang-315421/randdp.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! !--------------------------------------------------------------------- !--------------------------------------------------------------------- diff --git a/test/smoke-fort-dev/flang-494405/flang-494405.py b/test/smoke-fort-dev/flang-494405/flang-494405.py index 110602e3a..6024ae54e 100644 --- a/test/smoke-fort-dev/flang-494405/flang-494405.py +++ b/test/smoke-fort-dev/flang-494405/flang-494405.py @@ -1,3 +1,7 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. + +# SPDX-License-Identifier: MIT + # flang-494405.py # LLM: ChatGPT-4o (OpenAI), 2024-06-08 # diff --git a/test/smoke-fort-dev/flang-494405/redprob.f90 b/test/smoke-fort-dev/flang-494405/redprob.f90 index e4e4f0791..3a161a618 100644 --- a/test/smoke-fort-dev/flang-494405/redprob.f90 +++ b/test/smoke-fort-dev/flang-494405/redprob.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! function glsc3_acc(a,b,mult,n) real a(n),b(n),mult(n) real tmp,work(1) diff --git a/test/smoke-fort-dev/flang-544421-2/repro_544421-2.f90 b/test/smoke-fort-dev/flang-544421-2/repro_544421-2.f90 index ebca724d5..79f6cf9fe 100644 --- a/test/smoke-fort-dev/flang-544421-2/repro_544421-2.f90 +++ b/test/smoke-fort-dev/flang-544421-2/repro_544421-2.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! module reproducer_mod contains subroutine branching_target_call(dt, dt2, dt3, switch, switch2, switch3) diff --git a/test/smoke-fort-dev/flang-544421/repro_544421.f90 b/test/smoke-fort-dev/flang-544421/repro_544421.f90 index 8a293d5b6..616a67af0 100644 --- a/test/smoke-fort-dev/flang-544421/repro_544421.f90 +++ b/test/smoke-fort-dev/flang-544421/repro_544421.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! module reproducer_mod contains subroutine branching_target_call(dt, switch) diff --git a/test/smoke-fort-dev/flang-nestRed/flang-nestRed.py b/test/smoke-fort-dev/flang-nestRed/flang-nestRed.py index ed13f36de..e66624e58 100644 --- a/test/smoke-fort-dev/flang-nestRed/flang-nestRed.py +++ b/test/smoke-fort-dev/flang-nestRed/flang-nestRed.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. + +# SPDX-License-Identifier: MIT + """ LLM: Claude 3.5 Sonnet Date: December 2024 diff --git a/test/smoke-fort-dev/flang-nestRed/redprob.f90 b/test/smoke-fort-dev/flang-nestRed/redprob.f90 index 9fc6dba8e..9a36cbdb5 100644 --- a/test/smoke-fort-dev/flang-nestRed/redprob.f90 +++ b/test/smoke-fort-dev/flang-nestRed/redprob.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! function glsc3_acc(a,b,mult,n) real a(n),b(n),mult(n) real tmp,work(1) diff --git a/test/smoke-fort-dev/nwchem-s1_1/nwchem-s1_1.f90 b/test/smoke-fort-dev/nwchem-s1_1/nwchem-s1_1.f90 index dc9392db4..665265f83 100644 --- a/test/smoke-fort-dev/nwchem-s1_1/nwchem-s1_1.f90 +++ b/test/smoke-fort-dev/nwchem-s1_1/nwchem-s1_1.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! ! mimic NWChem tgt_sd_t_s1_1 kernel ! RL: do not redefine simd clause to be schedule(static, 1) ! RL: make the schedule clause usage be explicit diff --git a/test/smoke-fort-dev/nwchem-s1_1/printTime.py b/test/smoke-fort-dev/nwchem-s1_1/printTime.py index b83f58b18..3b2513c4d 100644 --- a/test/smoke-fort-dev/nwchem-s1_1/printTime.py +++ b/test/smoke-fort-dev/nwchem-s1_1/printTime.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. + +# SPDX-License-Identifier: MIT + # flang-494405.py # LLM: GPT-4 # Date: 2025-08-20 diff --git a/test/smoke-fort-fails/flang-535320/test.f90 b/test/smoke-fort-fails/flang-535320/test.f90 index ef696a5ae..641219cc6 100644 --- a/test/smoke-fort-fails/flang-535320/test.f90 +++ b/test/smoke-fort-fails/flang-535320/test.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! module foo contains diff --git a/test/smoke-fort-fails/flang-535416-O0/test.f90 b/test/smoke-fort-fails/flang-535416-O0/test.f90 index b2f0ac609..296ced311 100644 --- a/test/smoke-fort-fails/flang-535416-O0/test.f90 +++ b/test/smoke-fort-fails/flang-535416-O0/test.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! MODULE rep2 implicit none public :: nvars diff --git a/test/smoke-fort-fails/flang-535416-O2/test.f90 b/test/smoke-fort-fails/flang-535416-O2/test.f90 index b2f0ac609..296ced311 100644 --- a/test/smoke-fort-fails/flang-535416-O2/test.f90 +++ b/test/smoke-fort-fails/flang-535416-O2/test.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! MODULE rep2 implicit none public :: nvars diff --git a/test/smoke-fort-fails/flang-537499/test.f90 b/test/smoke-fort-fails/flang-537499/test.f90 index 88b3ceaa7..003ce8c7e 100644 --- a/test/smoke-fort-fails/flang-537499/test.f90 +++ b/test/smoke-fort-fails/flang-537499/test.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! program main implicit none diff --git a/test/smoke-fort-fails/flang-539234/split_teams_distribute_parallel_do.f90 b/test/smoke-fort-fails/flang-539234/split_teams_distribute_parallel_do.f90 index 73f113376..ef7cc791c 100644 --- a/test/smoke-fort-fails/flang-539234/split_teams_distribute_parallel_do.f90 +++ b/test/smoke-fort-fails/flang-539234/split_teams_distribute_parallel_do.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! ! compile with: ! ! amdflang -O2 -fopenmp --offload-arch=gfx90a -o split_teams_distribute_parallel_do split_teams_distribute_parallel_do.f90 @@ -45,4 +50,4 @@ program hierarchical end do end do print *, 'Success!!!' -end program hierarchical \ No newline at end of file +end program hierarchical diff --git a/test/smoke-fort-fails/flang-550360/parameter_dsa.f90 b/test/smoke-fort-fails/flang-550360/parameter_dsa.f90 index c16a4281c..4d0cda52b 100644 --- a/test/smoke-fort-fails/flang-550360/parameter_dsa.f90 +++ b/test/smoke-fort-fails/flang-550360/parameter_dsa.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! program shrd implicit none integer, parameter :: n = 7 diff --git a/test/smoke-fort-fails/target-cmplx4-pow2/target-cmplx4-pow2.f90 b/test/smoke-fort-fails/target-cmplx4-pow2/target-cmplx4-pow2.f90 index 2158e55cf..bf7e55e45 100644 --- a/test/smoke-fort-fails/target-cmplx4-pow2/target-cmplx4-pow2.f90 +++ b/test/smoke-fort-fails/target-cmplx4-pow2/target-cmplx4-pow2.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! program test implicit none integer :: i diff --git a/test/smoke-fort-fails/target-cmplx8-pow2/target-cmplx8-pow2.f90 b/test/smoke-fort-fails/target-cmplx8-pow2/target-cmplx8-pow2.f90 index 95f6db533..f83577e13 100644 --- a/test/smoke-fort-fails/target-cmplx8-pow2/target-cmplx8-pow2.f90 +++ b/test/smoke-fort-fails/target-cmplx8-pow2/target-cmplx8-pow2.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! program test implicit none integer :: i diff --git a/test/smoke-fort-fails/target-teams-call/target-teams-call.f90 b/test/smoke-fort-fails/target-teams-call/target-teams-call.f90 index fd4a512bf..26e79ba87 100644 --- a/test/smoke-fort-fails/target-teams-call/target-teams-call.f90 +++ b/test/smoke-fort-fails/target-teams-call/target-teams-call.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! program repro implicit none integer :: k diff --git a/test/smoke-fort/flang-523229/type_bound_proc_target.f90 b/test/smoke-fort/flang-523229/type_bound_proc_target.f90 index c5f296dcf..0495b156c 100644 --- a/test/smoke-fort/flang-523229/type_bound_proc_target.f90 +++ b/test/smoke-fort/flang-523229/type_bound_proc_target.f90 @@ -1,3 +1,8 @@ +! +!Copyright © Advanced Micro Devices, Inc., or its affiliates. +! +!SPDX-License-Identifier: MIT +! ! Reproducer for tickets SWDEV-523229 and SWDEV-540611. ! Compilation would fail while lowering to LLVM IR due to leftover host ! operations in the device MLIR module. diff --git a/tr_aomp/tr_add_info.sh b/tr_aomp/tr_add_info.sh index 807aa44f7..47f3622c5 100755 --- a/tr_aomp/tr_add_info.sh +++ b/tr_aomp/tr_add_info.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # tr_add_info.sh: Update the AOMP release info file # # diff --git a/tr_aomp/tr_build_aomp.sh b/tr_aomp/tr_build_aomp.sh index 2338c7203..c79a13976 100755 --- a/tr_aomp/tr_build_aomp.sh +++ b/tr_aomp/tr_build_aomp.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # tr_build_aomp.sh : Build aomp using TheRock # # --- Start standard header to set AOMP environment variables ---- diff --git a/tr_aomp/tr_clone_aomp.sh b/tr_aomp/tr_clone_aomp.sh index 724b1fa68..0145b0d93 100755 --- a/tr_aomp/tr_clone_aomp.sh +++ b/tr_aomp/tr_clone_aomp.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT + # tr_clone_aomp.sh: Clone TheRock repository to use to build aomp.sh # using TheRock repo and its submodules. unlike clone_aomp.sh # this script is NOT (yet) reusable to refresh all the repos. diff --git a/tr_aomp/tr_create_patch.sh b/tr_aomp/tr_create_patch.sh index bdeed66b3..5be645f2f 100755 --- a/tr_aomp/tr_create_patch.sh +++ b/tr_aomp/tr_create_patch.sh @@ -1,5 +1,9 @@ #!/bin/bash # +#Copyright © Advanced Micro Devices, Inc., or its affiliates. +# +#SPDX-License-Identifier: MIT +# # tr_create_patch.sh : Build set of patches to TheRock including submodules # # --- Start standard header to set AOMP environment variables ----