From 0575606e4915b05365cf2313121540945946b160 Mon Sep 17 00:00:00 2001 From: Dmitrii <19967783+dmitrii-galantsev@users.noreply.github.com> Date: Wed, 24 Sep 2025 11:07:20 -0500 Subject: [PATCH] chore: [rdc] Add copyright notice (#1098) --- projects/rdc/authentication/01gen_root_cert.sh | 3 +++ projects/rdc/authentication/02gen_ssl_artifacts.sh | 3 +++ projects/rdc/authentication/install_client.sh | 3 +++ projects/rdc/authentication/install_server.sh | 3 +++ projects/rdc/cmake_modules/version_util.sh | 3 +++ projects/rdc/include/rdc/rdc_private.h | 4 +++- projects/rdc/python_binding/RdcReader.py | 3 +++ projects/rdc/python_binding/RdcUtil.py | 3 +++ projects/rdc/python_binding/rdc_bootstrap.py | 3 +++ projects/rdc/python_binding/rdc_collectd.py | 3 +++ projects/rdc/python_binding/rdc_prometheus.py | 3 +++ projects/rdc/server/run_build.sh | 3 +++ projects/rdc/tools/cmake_format.sh | 3 +++ 13 files changed, 39 insertions(+), 1 deletion(-) diff --git a/projects/rdc/authentication/01gen_root_cert.sh b/projects/rdc/authentication/01gen_root_cert.sh index fc7810d7c2..d3de9e1d11 100755 --- a/projects/rdc/authentication/01gen_root_cert.sh +++ b/projects/rdc/authentication/01gen_root_cert.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # This script should be called only once to generate a root # certificate diff --git a/projects/rdc/authentication/02gen_ssl_artifacts.sh b/projects/rdc/authentication/02gen_ssl_artifacts.sh index 0e5d6f0171..1899f66200 100755 --- a/projects/rdc/authentication/02gen_ssl_artifacts.sh +++ b/projects/rdc/authentication/02gen_ssl_artifacts.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # This script generates ssl keys and self-signed certificates INSTALL_RT="artifacts" diff --git a/projects/rdc/authentication/install_client.sh b/projects/rdc/authentication/install_client.sh index 9b89171ce0..fc48b5e8bd 100755 --- a/projects/rdc/authentication/install_client.sh +++ b/projects/rdc/authentication/install_client.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # Note: # * This script should reside in the artifacts directory # when executed. diff --git a/projects/rdc/authentication/install_server.sh b/projects/rdc/authentication/install_server.sh index 49a9ec0465..8da0acf675 100755 --- a/projects/rdc/authentication/install_server.sh +++ b/projects/rdc/authentication/install_server.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # Note: # * This script should reside in the artifacts directory # when executed. diff --git a/projects/rdc/cmake_modules/version_util.sh b/projects/rdc/cmake_modules/version_util.sh index b55f9e8207..2c8ee18e74 100755 --- a/projects/rdc/cmake_modules/version_util.sh +++ b/projects/rdc/cmake_modules/version_util.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + # Handle commandline args while [ "$1" != "" ]; do case $1 in diff --git a/projects/rdc/include/rdc/rdc_private.h b/projects/rdc/include/rdc/rdc_private.h index e9ccb937ad..21fdcdbe3d 100644 --- a/projects/rdc/include/rdc/rdc_private.h +++ b/projects/rdc/include/rdc/rdc_private.h @@ -1,3 +1,5 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT #ifndef INCLUDE_RDC_RDC_PRIVATE_H_ #define INCLUDE_RDC_RDC_PRIVATE_H_ @@ -63,4 +65,4 @@ rdc_status_t get_mixed_component_version(rdc_handle_t p_rdc_handle, mixed_compon } #endif // __cplusplus -#endif // INCLUDE_RDC_RDC_PRIVATE_H_ \ No newline at end of file +#endif // INCLUDE_RDC_RDC_PRIVATE_H_ diff --git a/projects/rdc/python_binding/RdcReader.py b/projects/rdc/python_binding/RdcReader.py index 96ed02d7dd..d8fa0effb2 100644 --- a/projects/rdc/python_binding/RdcReader.py +++ b/projects/rdc/python_binding/RdcReader.py @@ -1,3 +1,6 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import os,time from rdc_bootstrap import * from RdcUtil import RdcUtil diff --git a/projects/rdc/python_binding/RdcUtil.py b/projects/rdc/python_binding/RdcUtil.py index 4bea3d7c2c..03b6fee361 100644 --- a/projects/rdc/python_binding/RdcUtil.py +++ b/projects/rdc/python_binding/RdcUtil.py @@ -1,3 +1,6 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + from rdc_bootstrap import * class RdcUtil: diff --git a/projects/rdc/python_binding/rdc_bootstrap.py b/projects/rdc/python_binding/rdc_bootstrap.py index 5a9e6d2ece..c707f93cce 100644 --- a/projects/rdc/python_binding/rdc_bootstrap.py +++ b/projects/rdc/python_binding/rdc_bootstrap.py @@ -1,3 +1,6 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import os, time import ctypes.util from ctypes import * diff --git a/projects/rdc/python_binding/rdc_collectd.py b/projects/rdc/python_binding/rdc_collectd.py index c890237572..699d3b6492 100644 --- a/projects/rdc/python_binding/rdc_collectd.py +++ b/projects/rdc/python_binding/rdc_collectd.py @@ -1,3 +1,6 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + from RdcReader import RdcReader from rdc_bootstrap import * import collectd diff --git a/projects/rdc/python_binding/rdc_prometheus.py b/projects/rdc/python_binding/rdc_prometheus.py index eede725bf7..93ba1e1c22 100644 --- a/projects/rdc/python_binding/rdc_prometheus.py +++ b/projects/rdc/python_binding/rdc_prometheus.py @@ -1,3 +1,6 @@ +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import argparse import os from RdcReader import RdcReader diff --git a/projects/rdc/server/run_build.sh b/projects/rdc/server/run_build.sh index 4d755a6909..6dc7a90cd3 100755 --- a/projects/rdc/server/run_build.sh +++ b/projects/rdc/server/run_build.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + mkdir -p build cd build cmake -DROCM_DIR=/opt/rocm .. diff --git a/projects/rdc/tools/cmake_format.sh b/projects/rdc/tools/cmake_format.sh index f6ad49f9d5..e6702aed14 100755 --- a/projects/rdc/tools/cmake_format.sh +++ b/projects/rdc/tools/cmake_format.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + set -e set -u set -o pipefail