diff --git a/CMakeLists.txt b/CMakeLists.txt index 47c67e1b45..ba796fc63a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,12 +245,12 @@ install( #Debian package specific variables set(CPACK_DEBIAN_PACKAGE_PROVIDES "amd-smi") -set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "sudo, libdrm-dev, python3-yaml, python3-argcomplete") +set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "sudo, python3-argcomplete, libdrm-dev") set(CPACK_DEBIAN_ASAN_PACKAGE_RECOMMENDS ${CPACK_DEBIAN_PACKAGE_RECOMMENDS}) set(CPACK_DEBIAN_DEV_PACKAGE_RECOMMENDS ${CPACK_DEBIAN_PACKAGE_RECOMMENDS}) set(CPACK_DEBIAN_ASAN_PACKAGE_PROVIDES "${AMD_SMI_PACKAGE}-asan") set(CPACK_DEBIAN_DEV_PACKAGE_PROVIDES "${AMD_SMI_PACKAGE}") -set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3 (>= 3.6.8), python3-pip") +set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3 (>= 3.6.8), python3-pip, python3-yaml") set(CPACK_DEBIAN_ASAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}) set(CPACK_DEBIAN_DEV_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}) @@ -273,7 +273,7 @@ set(CPACK_RPM_PACKAGE_SUGGESTS "python3-argcomplete") set(CPACK_RPM_DEV_PACKAGE_SUGGESTS ${CPACK_RPM_PACKAGE_SUGGESTS}) set(CPACK_RPM_ASAN_PACKAGE_SUGGESTS ${CPACK_RPM_PACKAGE_SUGGESTS}) # python version gated by rhel8 :( -set(CPACK_RPM_PACKAGE_REQUIRES "python3 >= 3.6.8, python3-pip") +set(CPACK_RPM_PACKAGE_REQUIRES "python3 >= 3.6.8, python3-pip, python3-yaml") set(CPACK_RPM_DEV_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES}) set(CPACK_RPM_ASAN_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES}) diff --git a/DEBIAN/postinst.in b/DEBIAN/postinst.in index c168fa4d75..6b558b2dd4 100755 --- a/DEBIAN/postinst.in +++ b/DEBIAN/postinst.in @@ -105,6 +105,7 @@ do_ldconfig() { } do_install_amdsmi_python_lib() { + echo "Installing AMD-SMI python library (amdsmi)..." # get python version local python3_minor_version python3_minor_version=$(python3 -c 'import sys;print(sys.version_info.minor)') @@ -122,23 +123,45 @@ do_install_amdsmi_python_lib() { return fi + local PREVIOUS_PIP_ROOT_ACTION="$PIP_ROOT_USER_ACTION" + export PIP_ROOT_USER_ACTION=ignore + # Remove old python library - python3 -m pip uninstall amdsmi --yes --quiet + local pip_list_output + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for amdsmi + if [[ $pip_list_output == *"amdsmi"* ]]; then + echo "Detected old AMD-SMI python library (amdsmi)..." + python3 -m pip uninstall amdsmi --yes --quiet --disable-pip-version-check + echo "Removed old AMD-SMI python library (amdsmi)..." + fi # install python library at @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/amdsmi local python_lib_path=@CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@ - python3 -m pip install "$python_lib_path" - python3 -m pip show argcomplete - if [ $? -ne 1 ]; then - activate-global-python-argcomplete + python3 -m pip install "$python_lib_path" --quiet --disable-pip-version-check + + unset PIP_ROOT_USER_ACTION + export PIP_ROOT_USER_ACTION="$PREVIOUS_PIP_ROOT_ACTION" + + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for argcomplete + if [[ $pip_list_output == *"argcomplete"* ]]; then + activate-global-python-argcomplete3 + # Newer versions of argcomplete do not have the 3 at the end + if [ $? -ne 0 ]; then + echo "[WARNING] Could not find activate-global-python-argcomplete3. "\ + "Trying newer activate-global-python-argcomplete..." + activate-global-python-argcomplete + fi fi + echo "Installed AMD-SMI python library (amdsmi)..." } case "$1" in ( configure ) - do_install_amdsmi_python_lib || return 0 + do_install_amdsmi_python_lib do_ldconfig - do_configureLogrotate || return 0 + do_configureLogrotate || exit 0 ;; ( abort-upgrade | abort-remove | abort-deconfigure ) echo "$1" diff --git a/DEBIAN/prerm.in b/DEBIAN/prerm.in index 186593ce2e..7295b3a0ce 100755 --- a/DEBIAN/prerm.in +++ b/DEBIAN/prerm.in @@ -8,10 +8,17 @@ rm_ldconfig() { fi } -rm_pyc() { +rm_leftovers() { # remove pyc files generated by python rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBEXECDIR@/amdsmi_cli/__pycache__ rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/amdsmi/__pycache__ + + # remove leftover doc files + rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/../doc/amd_smi* + rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/ + + # remove leftover libs + rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libamd_smi.so* } rm_logFolder() { @@ -34,6 +41,7 @@ return_logrotateToOrigConfig() { } rm_python_lib() { + echo "Removing AMD-SMI python library (amdsmi)..." # get python version local python3_minor_version python3_minor_version=$(python3 -c 'import sys;print(sys.version_info.minor)') @@ -50,22 +58,41 @@ rm_python_lib() { return fi - python3 -m pip uninstall amdsmi --yes - python3 -m pip show amdsmi - if [ $? -ne 1 ]; then - echo "[WARNING] AMD-SMI python library (amdsmi) is still installed. "\ + # Remove old python library + local pip_list_output + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for amdsmi + if [[ $pip_list_output == *"amdsmi"* ]]; then + local PREVIOUS_PIP_ROOT_ACTION="$PIP_ROOT_USER_ACTION" + export PIP_ROOT_USER_ACTION=ignore + + echo "Detected AMD-SMI python library (amdsmi)..." + python3 -m pip uninstall amdsmi --yes --quiet --disable-pip-version-check + echo "Removed AMD-SMI python library (amdsmi)..." + + unset PIP_ROOT_USER_ACTION + export PIP_ROOT_USER_ACTION="$PREVIOUS_PIP_ROOT_ACTION" + fi + + local pip_list_output + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for amdsmi + if [[ $pip_list_output == *"amdsmi"* ]]; then + echo "[WARNING] AMD-SMI python library (amdsmi) is still installed in pip. "\ "Check post install to ensure version is correct" return fi + echo "Removed AMD-SMI python library (amdsmi)..." } + case "$1" in ( remove | upgrade) # remove old gpuv-smi symlink rm -f @CPACK_PACKAGING_INSTALL_PREFIX@/bin/gpuv-smi &> /dev/null - rm_python_lib || return 0 + rm_python_lib rm_ldconfig - rm_pyc + rm_leftovers rm_logFolder return_logrotateToOrigConfig ;; diff --git a/LICENSE b/LICENSE index 49bfb6bb25..2bec038f1f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2019-2022 Advanced Micro Devices, Inc. +Copyright (c) 2019-2023 Advanced Micro Devices, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c4568921b9..b18de60af8 100755 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ amd-smi --help ```bash python3 -m pip install argcomplete -activate-global-python-argcomplete +activate-global-python-argcomplete --user # restart shell to enable ``` diff --git a/RPM/post.in b/RPM/post.in index cf760e9d07..1f3d0ced42 100755 --- a/RPM/post.in +++ b/RPM/post.in @@ -105,6 +105,7 @@ do_ldconfig() { } do_install_amdsmi_python_lib() { + echo "Installing AMD-SMI python library (amdsmi)..." # get python version local python3_minor_version python3_minor_version=$(python3 -c 'import sys;print(sys.version_info.minor)') @@ -122,21 +123,43 @@ do_install_amdsmi_python_lib() { return fi + local PREVIOUS_PIP_ROOT_ACTION="$PIP_ROOT_USER_ACTION" + export PIP_ROOT_USER_ACTION=ignore + # Remove old python library - python3 -m pip uninstall amdsmi --yes --quiet + local pip_list_output + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for amdsmi + if [[ $pip_list_output == *"amdsmi"* ]]; then + echo "Detected old AMD-SMI python library (amdsmi)..." + python3 -m pip uninstall amdsmi --yes --quiet --disable-pip-version-check + echo "Removed old AMD-SMI python library (amdsmi)..." + fi # install python library at @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/amdsmi local python_lib_path=@CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@ - python3 -m pip install "$python_lib_path" - python3 -m pip show argcomplete - if [ $? -ne 1 ]; then - activate-global-python-argcomplete + python3 -m pip install "$python_lib_path" --quiet --disable-pip-version-check + + unset PIP_ROOT_USER_ACTION + export PIP_ROOT_USER_ACTION="$PREVIOUS_PIP_ROOT_ACTION" + + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for argcomplete + if [[ $pip_list_output == *"argcomplete"* ]]; then + activate-global-python-argcomplete3 + # Newer versions of argcomplete do not have the 3 at the end + if [ $? -ne 0 ]; then + echo "[WARNING] Could not find activate-global-python-argcomplete3. "\ + "Trying newer activate-global-python-argcomplete..." + activate-global-python-argcomplete + fi fi + echo "Installed AMD-SMI python library (amdsmi)..." } # post install or upgrade, $i is 1 or 2 -> do these actions if [ "$1" -ge 1 ]; then - do_install_amdsmi_python_lib || return 0 + do_install_amdsmi_python_lib do_ldconfig - do_configureLogrotate || return 0 + do_configureLogrotate || exit 0 fi diff --git a/RPM/preun.in b/RPM/preun.in index 00bd4d374c..f3ec8ed5d6 100755 --- a/RPM/preun.in +++ b/RPM/preun.in @@ -1,9 +1,16 @@ #!/bin/bash -rm_pyc() { +rm_leftovers() { # remove pyc files generated by python rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBEXECDIR@/amdsmi_cli/__pycache__ rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/amdsmi/__pycache__ + + # remove leftover doc files + rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/../doc/amd_smi* + rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@/ + + # remove leftover libs + rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libamd_smi.so* } rm_logFolder() { @@ -26,6 +33,7 @@ return_logrotateToOrigConfig() { } rm_python_lib() { + echo "Removing AMD-SMI python library (amdsmi)..." # get python version local python3_minor_version python3_minor_version=$(python3 -c 'import sys;print(sys.version_info.minor)') @@ -42,21 +50,40 @@ rm_python_lib() { return fi - python3 -m pip uninstall amdsmi --yes - python3 -m pip show amdsmi - if [ $? -ne 1 ]; then - echo "[WARNING] AMD-SMI python library (amdsmi) is still installed. "\ + # Remove old python library + local pip_list_output + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for amdsmi + if [[ $pip_list_output == *"amdsmi"* ]]; then + local PREVIOUS_PIP_ROOT_ACTION="$PIP_ROOT_USER_ACTION" + export PIP_ROOT_USER_ACTION=ignore + + echo "Detected AMD-SMI python library (amdsmi)..." + python3 -m pip uninstall amdsmi --yes --quiet --disable-pip-version-check + echo "Removed AMD-SMI python library (amdsmi)..." + + unset PIP_ROOT_USER_ACTION + export PIP_ROOT_USER_ACTION="$PREVIOUS_PIP_ROOT_ACTION" + fi + + local pip_list_output + pip_list_output=$(python3 -m pip list --disable-pip-version-check) + # check pip list output for amdsmi + if [[ $pip_list_output == *"amdsmi"* ]]; then + echo "[WARNING] AMD-SMI python library (amdsmi) is still installed in pip. "\ "Check post install to ensure version is correct" return fi + echo "Removed AMD-SMI python library (amdsmi)..." } + if [ "$1" -le 1 ]; then # perform the below actions for rpm remove($1=0) or upgrade($1=1) operations # remove old gpuv-smi symlink rm -f @CPACK_PACKAGING_INSTALL_PREFIX@/bin/gpuv-smi &> /dev/null - rm_python_lib || return 0 - rm_pyc + rm_python_lib + rm_leftovers rm_logFolder return_logrotateToOrigConfig fi diff --git a/amdsmi_cli/README.md b/amdsmi_cli/README.md index 0be74e1c29..c7473a0e59 100644 --- a/amdsmi_cli/README.md +++ b/amdsmi_cli/README.md @@ -32,7 +32,7 @@ amd-smi --help ```bash python3 -m pip install argcomplete -activate-global-python-argcomplete +activate-global-python-argcomplete --user # restart shell to enable ``` diff --git a/example/amd_smi_drm_example.cc b/example/amd_smi_drm_example.cc index de0f794aed..38a6882586 100644 --- a/example/amd_smi_drm_example.cc +++ b/example/amd_smi_drm_example.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/example/amd_smi_nodrm_example.cc b/example/amd_smi_nodrm_example.cc index 987c8c9225..843691d0a6 100644 --- a/example/amd_smi_nodrm_example.cc +++ b/example/amd_smi_nodrm_example.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/example/amdsmi_esmi_intg_example.cc b/example/amdsmi_esmi_intg_example.cc index 64114852b3..e79a30cbd7 100644 --- a/example/amdsmi_esmi_intg_example.cc +++ b/example/amdsmi_esmi_intg_example.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/amdsmi.h b/include/amd_smi/amdsmi.h index 72894c3422..89c0aca42b 100644 --- a/include/amd_smi/amdsmi.h +++ b/include/amd_smi/amdsmi.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_common.h b/include/amd_smi/impl/amd_smi_common.h index e4d8fd8a53..3a93823f7d 100644 --- a/include/amd_smi/impl/amd_smi_common.h +++ b/include/amd_smi/impl/amd_smi_common.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_cpu_core.h b/include/amd_smi/impl/amd_smi_cpu_core.h index c721cd671c..e623cf7b47 100644 --- a/include/amd_smi/impl/amd_smi_cpu_core.h +++ b/include/amd_smi/impl/amd_smi_cpu_core.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_cpu_socket.h b/include/amd_smi/impl/amd_smi_cpu_socket.h index 8e41422cec..9403db201d 100644 --- a/include/amd_smi/impl/amd_smi_cpu_socket.h +++ b/include/amd_smi/impl/amd_smi_cpu_socket.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_drm.h b/include/amd_smi/impl/amd_smi_drm.h index 88da83e82a..4f25838ad8 100644 --- a/include/amd_smi/impl/amd_smi_drm.h +++ b/include/amd_smi/impl/amd_smi_drm.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_gpu_device.h b/include/amd_smi/impl/amd_smi_gpu_device.h index c191b29421..61290a5f37 100644 --- a/include/amd_smi/impl/amd_smi_gpu_device.h +++ b/include/amd_smi/impl/amd_smi_gpu_device.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_processor.h b/include/amd_smi/impl/amd_smi_processor.h index 3db7b0f53c..2e20f2b75f 100644 --- a/include/amd_smi/impl/amd_smi_processor.h +++ b/include/amd_smi/impl/amd_smi_processor.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_socket.h b/include/amd_smi/impl/amd_smi_socket.h index 93c5bd38d1..e8a3ab567a 100644 --- a/include/amd_smi/impl/amd_smi_socket.h +++ b/include/amd_smi/impl/amd_smi_socket.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_system.h b/include/amd_smi/impl/amd_smi_system.h index f20b2ed0b7..8c31c2b891 100644 --- a/include/amd_smi/impl/amd_smi_system.h +++ b/include/amd_smi/impl/amd_smi_system.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/include/amd_smi/impl/amd_smi_utils.h b/include/amd_smi/impl/amd_smi_utils.h index ae8f2b26ad..7d2df9b115 100644 --- a/include/amd_smi/impl/amd_smi_utils.h +++ b/include/amd_smi/impl/amd_smi_utils.h @@ -1,4 +1,4 @@ -/* * Copyright (C) 2022 Advanced Micro Devices. All rights reserved. +/* * Copyright (C) 2023 Advanced Micro Devices. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/include/amd_smi/impl/amd_smi_uuid.h b/include/amd_smi/impl/amd_smi_uuid.h index 2b9bbe9494..0027936473 100644 --- a/include/amd_smi/impl/amd_smi_uuid.h +++ b/include/amd_smi/impl/amd_smi_uuid.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/include/amd_smi/impl/fdinfo.h b/include/amd_smi/impl/fdinfo.h index c37e60cf5b..d55a04a623 100644 --- a/include/amd_smi/impl/fdinfo.h +++ b/include/amd_smi/impl/fdinfo.h @@ -1,5 +1,5 @@ /* - * Copyright 2022 Advanced Micro Devices, Inc. + * Copyright 2023 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/py-interface/README.md b/py-interface/README.md index 6343bb1775..64ffbc7f04 100644 --- a/py-interface/README.md +++ b/py-interface/README.md @@ -3944,3 +3944,128 @@ try: except AmdSmiException as e: print(e) ``` + +### amdsmi_get_cpu_core_boostlimit + +Description: Get boost limit of the cpu core + +Output: amdsmi frequency + +Exceptions that can be thrown by `amdsmi_get_cpu_core_boostlimit` function: + +* `AmdSmiLibraryException` + +Example: + +```python +try: + core_handles = amdsmi_get_cpucore_handles() + if len(core_handles) == 0: + print("No CPU cores on machine") + else: + for core in core_handles: + boost_limit = amdsmi_get_cpu_core_boostlimit(core) + print(boost_limit) +except AmdSmiException as e: + print(e) +``` + +### amdsmi_get_cpu_socket_c0_residency + +Description: Get the cpu socket C0 residency. + +Output: amdsmi C0 residency value + +Exceptions that can be thrown by `amdsmi_get_cpu_socket_c0_residency` function: + +* `AmdSmiLibraryException` + +Example: + +```python +try: + socket_handles = amdsmi_get_cpusocket_handles() + if len(socket_handles) == 0: + print("No CPU sockets on machine") + else: + for socket in socket_handles: + c0_residency = amdsmi_get_cpu_socket_c0_residency(socket) + print(c0_residency) +except AmdSmiException as e: + print(e) +``` + +### amdsmi_set_cpu_core_boostlimit + +Description: Set the cpu core boost limit. + +Output: amdsmi boostlimit value + +Exceptions that can be thrown by `amdsmi_set_cpu_core_boostlimit` function: + +* `AmdSmiLibraryException` + +Example: + +```python +try: + core_handles = amdsmi_get_cpucore_handles() + if len(core_handles) == 0: + print("No CPU cores on machine") + else: + for core in core_handles: + boost_limit = amdsmi_set_cpu_core_boostlimit(core, 1000) +except AmdSmiException as e: + print(e) +``` + +### amdsmi_set_cpu_socket_boostlimit + +Description: Set the cpu socket boost limit. + +Input: amdsmi boostlimit value + +Exceptions that can be thrown by `amdsmi_set_cpu_socket_boostlimit` function: + +* `AmdSmiLibraryException` + +Example: + +```python +try: + socket_handles = amdsmi_get_cpusocket_handles() + if len(socket_handles) == 0: + print("No CPU sockets on machine") + else: + for socket in socket_handles: + boost_limit = amdsmi_set_cpu_socket_boostlimit(socket, 1000) +except AmdSmiException as e: + print(e) +``` + +### amdsmi_get_cpu_ddr_bw + +Description: Get the CPU DDR Bandwidth. + +Output: amdsmi ddr bandwidth data + +Exceptions that can be thrown by `amdsmi_get_cpu_ddr_bw` function: + +* `AmdSmiLibraryException` + +Example: + +```python +try: + socket_handles = amdsmi_get_cpusocket_handles() + if len(socket_handles) == 0: + print("No CPU sockets on machine") + else: + for socket in socket_handles: + ddr_bw = amdsmi_get_cpu_ddr_bw(socket) + print(ddr_bw['max_bw']) + print(ddr_bw['utilized_bw']) + print(ddr_bw['utilized_pct']) +except AmdSmiException as e: + print(e) +``` diff --git a/py-interface/amdsmi_interface.py b/py-interface/amdsmi_interface.py index d1069be1ab..80a3ba6d13 100644 --- a/py-interface/amdsmi_interface.py +++ b/py-interface/amdsmi_interface.py @@ -971,6 +971,98 @@ def amdsmi_set_cpu_pwr_efficiency_mode( socket_handle, sock_idx, mode) ) +def amdsmi_get_cpu_core_boostlimit( + processor_handle: amdsmi_wrapper.amdsmi_processor_handle, core_idx: int +) -> int: + if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle): + raise AmdSmiParameterException( + processor_handle, amdsmi_wrapper.amdsmi_processor_handle + ) + if not isinstance(core_idx, int): + raise AmdSmiParameterException(core_idx, int) + + boostlimit = ctypes.c_uint32() + _check_res( + amdsmi_wrapper.amdsmi_get_cpu_core_boostlimit( + processor_handle, core_idx, ctypes.byref(boostlimit) + ) + ) + + return boostlimit.value + +def amdsmi_get_cpu_socket_c0_residency( + socket_handle: amdsmi_wrapper.amdsmi_cpusocket_handle, sock_idx: int +) -> int: + if not isinstance(socket_handle, amdsmi_wrapper.amdsmi_cpusocket_handle): + raise AmdSmiParameterException( + socket_handle, amdsmi_wrapper.amdsmi_cpusocket_handle + ) + if not isinstance(sock_idx, int): + raise AmdSmiParameterException(sock_idx, int) + + c0_residency = ctypes.c_uint32() + _check_res( + amdsmi_wrapper.amdsmi_get_cpu_socket_c0_residency( + socket_handle, sock_idx, ctypes.byref(c0_residency) + ) + ) + + return c0_residency.value + +def amdsmi_set_cpu_core_boostlimit( + processor_handle: amdsmi_wrapper.amdsmi_processor_handle, core_idx: int, boostlimit: int +): + if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle): + raise AmdSmiParameterException( + processor_handle, amdsmi_wrapper.amdsmi_processor_handle + ) + if not isinstance(core_idx, int): + raise AmdSmiParameterException(core_idx, int) + if not isinstance(boostlimit, int): + raise AmdSmiParameterException(boostlimit, int) + core_idx = ctypes.c_uint32(core_idx) + boostlimit = ctypes.c_uint32(boostlimit) + + _check_res( + amdsmi_wrapper.amdsmi_set_cpu_core_boostlimit( + processor_handle, core_idx, boostlimit) + ) + +def amdsmi_set_cpu_socket_boostlimit( + socket_handle: amdsmi_wrapper.amdsmi_cpusocket_handle, sock_idx: int, boostlimit: int +): + if not isinstance(socket_handle, amdsmi_wrapper.amdsmi_cpusocket_handle): + raise AmdSmiParameterException( + socket_handle, amdsmi_wrapper.amdsmi_cpusocket_handle + ) + if not isinstance(sock_idx, int): + raise AmdSmiParameterException(sock_idx, int) + if not isinstance(boostlimit, int): + raise AmdSmiParameterException(boostlimit, int) + sock_idx = ctypes.c_uint32(sock_idx) + boostlimit = ctypes.c_uint32(boostlimit) + + _check_res( + amdsmi_wrapper.amdsmi_set_cpu_socket_boostlimit( + socket_handle, sock_idx, boostlimit) + ) + +def amdsmi_get_cpu_ddr_bw(socket_handle: amdsmi_wrapper.amdsmi_cpusocket_handle): + if not isinstance(socket_handle, amdsmi_wrapper.amdsmi_cpusocket_handle): + raise AmdSmiParameterException( + socket_handle, amdsmi_wrapper.amdsmi_cpusocket_handle + ) + + ddr_bw = amdsmi_wrapper.amdsmi_ddr_bw_metrics_t() + + _check_res(amdsmi_wrapper.amdsmi_get_cpu_ddr_bw(socket_handle, ddr_bw)) + + return { + "ddr_bw_max_bw": ddr_bw.max_bw, + "ddr_bw_utilized_bw": ddr_bw.utilized_bw, + "ddr_bw_utilized_pct": ddr_bw.utilized_pct + } + def amdsmi_init(flag=AmdSmiInitFlags.INIT_AMD_GPUS): if not isinstance(flag, AmdSmiInitFlags): raise AmdSmiParameterException(flag, AmdSmiInitFlags) diff --git a/py-interface/setup.cfg.in b/py-interface/setup.cfg.in index 3647feae6b..99ff944678 100644 --- a/py-interface/setup.cfg.in +++ b/py-interface/setup.cfg.in @@ -3,7 +3,23 @@ [metadata] name = amdsmi +author = AMD +author_email = amd-smi.support@amd.com +url = https://github.com/RadeonOpenCompute/amdsmi +description = AMDSMI Python LIB - AMD GPU Monitoring Library version = @amd_smi_libraries_VERSION_STRING@ +license_file = amdsmi/LICENSE +classifiers = + Programming Language :: Python :: 3 + +[options] +zip_safe = False +include_package_data = True +packages = find: +python_requires = >=3.6 +install_requires= + PyYAML >= 5.0 + clang >= 14.0 [options.package_data] -amdsmi = *.so +* = *.so \ No newline at end of file diff --git a/rocm_smi/include/rocm_smi/rocm_smi.h b/rocm_smi/include/rocm_smi/rocm_smi.h index 3460bebac2..71de14939b 100755 --- a/rocm_smi/include/rocm_smi/rocm_smi.h +++ b/rocm_smi/include/rocm_smi/rocm_smi.h @@ -377,16 +377,16 @@ typedef rsmi_clk_type_t rsmi_clk_type; */ typedef enum { RSMI_COMPUTE_PARTITION_INVALID = 0, - RSMI_COMPUTE_PARTITION_CPX = 1, //!< Core mode (CPX)- Per-chip XCC with - //!< shared memory - RSMI_COMPUTE_PARTITION_SPX = 2, //!< Single GPU mode (SPX)- All XCCs work - //!< together with shared memory - RSMI_COMPUTE_PARTITION_DPX = 3, //!< Dual GPU mode (DPX)- Half XCCs work - //!< together with shared memory - RSMI_COMPUTE_PARTITION_TPX = 4, //!< Triple GPU mode (TPX)- One-third XCCs - //!< work together with shared memory - RSMI_COMPUTE_PARTITION_QPX = 5, //!< Quad GPU mode (QPX)- Quarter XCCs - //!< work together with shared memory + RSMI_COMPUTE_PARTITION_CPX, //!< Core mode (CPX)- Per-chip XCC with + //!< shared memory + RSMI_COMPUTE_PARTITION_SPX, //!< Single GPU mode (SPX)- All XCCs work + //!< together with shared memory + RSMI_COMPUTE_PARTITION_DPX, //!< Dual GPU mode (DPX)- Half XCCs work + //!< together with shared memory + RSMI_COMPUTE_PARTITION_TPX, //!< Triple GPU mode (TPX)- One-third XCCs + //!< work together with shared memory + RSMI_COMPUTE_PARTITION_QPX, //!< Quad GPU mode (QPX)- Quarter XCCs + //!< work together with shared memory } rsmi_compute_partition_type_t; /// \cond Ignore in docs. typedef rsmi_compute_partition_type_t rsmi_compute_partition_type; @@ -707,8 +707,8 @@ typedef enum { */ typedef enum _RSMI_IO_LINK_TYPE { RSMI_IOLINK_TYPE_UNDEFINED = 0, //!< unknown type. - RSMI_IOLINK_TYPE_PCIEXPRESS = 1, //!< PCI Express - RSMI_IOLINK_TYPE_XGMI = 2, //!< XGMI + RSMI_IOLINK_TYPE_PCIEXPRESS, //!< PCI Express + RSMI_IOLINK_TYPE_XGMI, //!< XGMI RSMI_IOLINK_TYPE_NUMIOLINKTYPES, //!< Number of IO Link types RSMI_IOLINK_TYPE_SIZE = 0xFFFFFFFF //!< Max of IO Link types } RSMI_IO_LINK_TYPE; diff --git a/rocm_smi/python_smi_tools/README.md b/rocm_smi/python_smi_tools/README.md index bbb8652019..57654290fe 100644 --- a/rocm_smi/python_smi_tools/README.md +++ b/rocm_smi/python_smi_tools/README.md @@ -426,4 +426,4 @@ The information contained herein is for informational purposes only, and is subj AMD, the AMD Arrow logo, and combinations thereof are trademarks of Advanced Micro Devices, Inc. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies. -Copyright (c) 2014-2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2014-2023 Advanced Micro Devices, Inc. All rights reserved. diff --git a/rocm_smi/src/rocm_smi.cc b/rocm_smi/src/rocm_smi.cc index 92836a9d4c..d9251397e3 100755 --- a/rocm_smi/src/rocm_smi.cc +++ b/rocm_smi/src/rocm_smi.cc @@ -3007,9 +3007,6 @@ rsmi_dev_od_volt_info_get(uint32_t dv_ind, rsmi_od_volt_freq_data_t *odv) { ss << __PRETTY_FUNCTION__ << "| ======= start ======="; LOG_TRACE(ss); DEVICE_MUTEX - if (odv == nullptr) { - return RSMI_STATUS_INVALID_ARGS; - } CHK_SUPPORT_NAME_ONLY(odv) rsmi_status_t ret = get_od_clk_volt_info(dv_ind, odv); diff --git a/rocm_smi/src/rocm_smi_main.cc b/rocm_smi/src/rocm_smi_main.cc index c29916bedc..98fae2a663 100755 --- a/rocm_smi/src/rocm_smi_main.cc +++ b/rocm_smi/src/rocm_smi_main.cc @@ -52,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -393,6 +394,29 @@ RocmSMI::Initialize(uint64_t flags) { "Failed to initialize rocm_smi library (amdgpu node discovery)."); } + std::shared_ptr dev; + // Sort index based on the BDF, collect BDF id firstly. + std::vector>> dv_to_id; + dv_to_id.reserve(devices_.size()); + for (uint32_t dv_ind = 0; dv_ind < devices_.size(); ++dv_ind) { + dev = devices_[dv_ind]; + uint64_t bdfid = dev->bdfid(); + dv_to_id.push_back({bdfid, dev}); + } + ss << __PRETTY_FUNCTION__ << " Sort index based on BDF."; + LOG_DEBUG(ss); + + // Stable sort to keep the order if bdf is equal. + std::stable_sort(dv_to_id.begin(), dv_to_id.end(), [] + (const std::pair>& p1, + const std::pair>& p2) { + return p1.first < p2.first; + }); + devices_.clear(); + for (uint32_t dv_ind = 0; dv_ind < dv_to_id.size(); ++dv_ind) { + devices_.push_back(dv_to_id[dv_ind].second); + } + std::map> tmp_map; i_ret = DiscoverKFDNodes(&tmp_map); if (i_ret != 0) { @@ -411,8 +435,6 @@ RocmSMI::Initialize(uint64_t flags) { for (it = io_link_map_tmp.begin(); it != io_link_map_tmp.end(); it++) io_link_map_[it->first] = it->second; - std::shared_ptr dev; - // Remove any drm nodes that don't have a corresponding readable kfd node. // kfd nodes will not be added if their properties file is not readable. auto dev_iter = devices_.begin(); diff --git a/src/amd_smi/amd_smi.cc b/src/amd_smi/amd_smi.cc index f25b3d6f92..4866bedde6 100644 --- a/src/amd_smi/amd_smi.cc +++ b/src/amd_smi/amd_smi.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_common.cc b/src/amd_smi/amd_smi_common.cc index 21dff9bca4..4f839e8cd7 100644 --- a/src/amd_smi/amd_smi_common.cc +++ b/src/amd_smi/amd_smi_common.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_cpu_core.cc b/src/amd_smi/amd_smi_cpu_core.cc index deb1206f72..9f96517157 100644 --- a/src/amd_smi/amd_smi_cpu_core.cc +++ b/src/amd_smi/amd_smi_cpu_core.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_cpu_socket.cc b/src/amd_smi/amd_smi_cpu_socket.cc index 64117e21bb..0fc90adc7c 100644 --- a/src/amd_smi/amd_smi_cpu_socket.cc +++ b/src/amd_smi/amd_smi_cpu_socket.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_drm.cc b/src/amd_smi/amd_smi_drm.cc index 3d47e2d074..a3b2fbc79e 100644 --- a/src/amd_smi/amd_smi_drm.cc +++ b/src/amd_smi/amd_smi_drm.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_gpu_device.cc b/src/amd_smi/amd_smi_gpu_device.cc index 236c34d9d1..b303e82ea3 100644 --- a/src/amd_smi/amd_smi_gpu_device.cc +++ b/src/amd_smi/amd_smi_gpu_device.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_lib_loader.cc b/src/amd_smi/amd_smi_lib_loader.cc index d85e18c553..ad3dba1fd0 100644 --- a/src/amd_smi/amd_smi_lib_loader.cc +++ b/src/amd_smi/amd_smi_lib_loader.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_socket.cc b/src/amd_smi/amd_smi_socket.cc index a563d72b93..cf2cfc3f9e 100644 --- a/src/amd_smi/amd_smi_socket.cc +++ b/src/amd_smi/amd_smi_socket.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_system.cc b/src/amd_smi/amd_smi_system.cc index a0520fdddc..66e481c7ba 100644 --- a/src/amd_smi/amd_smi_system.cc +++ b/src/amd_smi/amd_smi_system.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/src/amd_smi/amd_smi_utils.cc b/src/amd_smi/amd_smi_utils.cc index d733d0b031..2b16250dc3 100644 --- a/src/amd_smi/amd_smi_utils.cc +++ b/src/amd_smi/amd_smi_utils.cc @@ -1,4 +1,4 @@ -/* * Copyright (C) 2022 Advanced Micro Devices. All rights reserved. +/* * Copyright (C) 2023 Advanced Micro Devices. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/src/amd_smi/amd_smi_uuid.cc b/src/amd_smi/amd_smi_uuid.cc index cbf41244ef..d75844eb25 100644 --- a/src/amd_smi/amd_smi_uuid.cc +++ b/src/amd_smi/amd_smi_uuid.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/amd_smi/fdinfo.cc b/src/amd_smi/fdinfo.cc index 857b09c71f..997bc22525 100644 --- a/src/amd_smi/fdinfo.cc +++ b/src/amd_smi/fdinfo.cc @@ -1,4 +1,4 @@ -/* * Copyright (C) 2022 Advanced Micro Devices. All rights reserved. +/* * Copyright (C) 2023 Advanced Micro Devices. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/src/amd_smiConfig.in b/src/amd_smiConfig.in index 3d720f727e..28fa592fb2 100755 --- a/src/amd_smiConfig.in +++ b/src/amd_smiConfig.in @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/api_support_read.cc b/tests/amd_smi_test/functional/api_support_read.cc index 939c35b3e4..78cf468af1 100755 --- a/tests/amd_smi_test/functional/api_support_read.cc +++ b/tests/amd_smi_test/functional/api_support_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/api_support_read.h b/tests/amd_smi_test/functional/api_support_read.h index 10d1674733..6bdf3a89b6 100755 --- a/tests/amd_smi_test/functional/api_support_read.h +++ b/tests/amd_smi_test/functional/api_support_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/err_cnt_read.cc b/tests/amd_smi_test/functional/err_cnt_read.cc index ab341b21a0..fa8b3676af 100755 --- a/tests/amd_smi_test/functional/err_cnt_read.cc +++ b/tests/amd_smi_test/functional/err_cnt_read.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/err_cnt_read.h b/tests/amd_smi_test/functional/err_cnt_read.h index 57126d167a..701fde4e31 100755 --- a/tests/amd_smi_test/functional/err_cnt_read.h +++ b/tests/amd_smi_test/functional/err_cnt_read.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/evt_notif_read_write.cc b/tests/amd_smi_test/functional/evt_notif_read_write.cc index 5061c6f097..47a2ae12eb 100755 --- a/tests/amd_smi_test/functional/evt_notif_read_write.cc +++ b/tests/amd_smi_test/functional/evt_notif_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/evt_notif_read_write.h b/tests/amd_smi_test/functional/evt_notif_read_write.h index d60dd63ff6..b1e0271007 100755 --- a/tests/amd_smi_test/functional/evt_notif_read_write.h +++ b/tests/amd_smi_test/functional/evt_notif_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/frequencies_read.cc b/tests/amd_smi_test/functional/frequencies_read.cc index 98e310d64b..6aec518e26 100755 --- a/tests/amd_smi_test/functional/frequencies_read.cc +++ b/tests/amd_smi_test/functional/frequencies_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/frequencies_read.h b/tests/amd_smi_test/functional/frequencies_read.h index 07329338a7..7d58403ef6 100755 --- a/tests/amd_smi_test/functional/frequencies_read.h +++ b/tests/amd_smi_test/functional/frequencies_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/frequencies_read_write.cc b/tests/amd_smi_test/functional/frequencies_read_write.cc index b80f700fb1..cc35838293 100755 --- a/tests/amd_smi_test/functional/frequencies_read_write.cc +++ b/tests/amd_smi_test/functional/frequencies_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/frequencies_read_write.h b/tests/amd_smi_test/functional/frequencies_read_write.h index 03322396e6..0757a35cd5 100755 --- a/tests/amd_smi_test/functional/frequencies_read_write.h +++ b/tests/amd_smi_test/functional/frequencies_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/gpu_busy_read.cc b/tests/amd_smi_test/functional/gpu_busy_read.cc index 7d02cafecb..2d20c6eead 100755 --- a/tests/amd_smi_test/functional/gpu_busy_read.cc +++ b/tests/amd_smi_test/functional/gpu_busy_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/gpu_busy_read.h b/tests/amd_smi_test/functional/gpu_busy_read.h index 1f94059a2e..8d734d2012 100755 --- a/tests/amd_smi_test/functional/gpu_busy_read.h +++ b/tests/amd_smi_test/functional/gpu_busy_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/gpu_metrics_read.cc b/tests/amd_smi_test/functional/gpu_metrics_read.cc index 0c6ffa1a12..a5e69fdedd 100644 --- a/tests/amd_smi_test/functional/gpu_metrics_read.cc +++ b/tests/amd_smi_test/functional/gpu_metrics_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/gpu_metrics_read.h b/tests/amd_smi_test/functional/gpu_metrics_read.h index 60a3b77afd..de75bf1d96 100644 --- a/tests/amd_smi_test/functional/gpu_metrics_read.h +++ b/tests/amd_smi_test/functional/gpu_metrics_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/hw_topology_read.cc b/tests/amd_smi_test/functional/hw_topology_read.cc index c4ad7810ad..7f1e095758 100755 --- a/tests/amd_smi_test/functional/hw_topology_read.cc +++ b/tests/amd_smi_test/functional/hw_topology_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/hw_topology_read.h b/tests/amd_smi_test/functional/hw_topology_read.h index 94868b0c5a..5e04a3b950 100755 --- a/tests/amd_smi_test/functional/hw_topology_read.h +++ b/tests/amd_smi_test/functional/hw_topology_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/id_info_read.cc b/tests/amd_smi_test/functional/id_info_read.cc index 35345ffd18..192e672c85 100755 --- a/tests/amd_smi_test/functional/id_info_read.cc +++ b/tests/amd_smi_test/functional/id_info_read.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/id_info_read.h b/tests/amd_smi_test/functional/id_info_read.h index 4f7e8903d2..4fcff497e7 100755 --- a/tests/amd_smi_test/functional/id_info_read.h +++ b/tests/amd_smi_test/functional/id_info_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/init_shutdown_refcount.cc b/tests/amd_smi_test/functional/init_shutdown_refcount.cc index 23841aab06..222486be6a 100755 --- a/tests/amd_smi_test/functional/init_shutdown_refcount.cc +++ b/tests/amd_smi_test/functional/init_shutdown_refcount.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/init_shutdown_refcount.h b/tests/amd_smi_test/functional/init_shutdown_refcount.h index be0058a779..9c5a7183ee 100755 --- a/tests/amd_smi_test/functional/init_shutdown_refcount.h +++ b/tests/amd_smi_test/functional/init_shutdown_refcount.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/mem_page_info_read.cc b/tests/amd_smi_test/functional/mem_page_info_read.cc index d706f83722..3d4dd866e5 100755 --- a/tests/amd_smi_test/functional/mem_page_info_read.cc +++ b/tests/amd_smi_test/functional/mem_page_info_read.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/mem_page_info_read.h b/tests/amd_smi_test/functional/mem_page_info_read.h index 823d915fef..e17e127b15 100755 --- a/tests/amd_smi_test/functional/mem_page_info_read.h +++ b/tests/amd_smi_test/functional/mem_page_info_read.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/mem_util_read.cc b/tests/amd_smi_test/functional/mem_util_read.cc index 86b41b0015..3a467d272a 100755 --- a/tests/amd_smi_test/functional/mem_util_read.cc +++ b/tests/amd_smi_test/functional/mem_util_read.cc @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/mem_util_read.h b/tests/amd_smi_test/functional/mem_util_read.h index 9317fdf265..f9ea38ad9a 100755 --- a/tests/amd_smi_test/functional/mem_util_read.h +++ b/tests/amd_smi_test/functional/mem_util_read.h @@ -3,7 +3,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/metrics_counter_read.cc b/tests/amd_smi_test/functional/metrics_counter_read.cc index 2c24576fba..28225637d5 100644 --- a/tests/amd_smi_test/functional/metrics_counter_read.cc +++ b/tests/amd_smi_test/functional/metrics_counter_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/metrics_counter_read.h b/tests/amd_smi_test/functional/metrics_counter_read.h index ccf824f96d..3c59d58e6c 100644 --- a/tests/amd_smi_test/functional/metrics_counter_read.h +++ b/tests/amd_smi_test/functional/metrics_counter_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/mutual_exclusion.cc b/tests/amd_smi_test/functional/mutual_exclusion.cc index 28b9f337f5..48bbe82934 100755 --- a/tests/amd_smi_test/functional/mutual_exclusion.cc +++ b/tests/amd_smi_test/functional/mutual_exclusion.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/mutual_exclusion.h b/tests/amd_smi_test/functional/mutual_exclusion.h index 648367c23d..c650876ca8 100755 --- a/tests/amd_smi_test/functional/mutual_exclusion.h +++ b/tests/amd_smi_test/functional/mutual_exclusion.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/overdrive_read.cc b/tests/amd_smi_test/functional/overdrive_read.cc index 4c609c50d4..57e362a502 100755 --- a/tests/amd_smi_test/functional/overdrive_read.cc +++ b/tests/amd_smi_test/functional/overdrive_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/overdrive_read.h b/tests/amd_smi_test/functional/overdrive_read.h index 40818155ad..acc6bb4973 100755 --- a/tests/amd_smi_test/functional/overdrive_read.h +++ b/tests/amd_smi_test/functional/overdrive_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/overdrive_read_write.cc b/tests/amd_smi_test/functional/overdrive_read_write.cc index 55662bae28..23837d293d 100755 --- a/tests/amd_smi_test/functional/overdrive_read_write.cc +++ b/tests/amd_smi_test/functional/overdrive_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/overdrive_read_write.h b/tests/amd_smi_test/functional/overdrive_read_write.h index 009f7bec9d..af46e4374a 100755 --- a/tests/amd_smi_test/functional/overdrive_read_write.h +++ b/tests/amd_smi_test/functional/overdrive_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/pci_read_write.cc b/tests/amd_smi_test/functional/pci_read_write.cc index f08b8e4c17..4c147ad4cf 100755 --- a/tests/amd_smi_test/functional/pci_read_write.cc +++ b/tests/amd_smi_test/functional/pci_read_write.cc @@ -2,7 +2,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/pci_read_write.h b/tests/amd_smi_test/functional/pci_read_write.h index 9b0b13a849..c34dd0832b 100755 --- a/tests/amd_smi_test/functional/pci_read_write.h +++ b/tests/amd_smi_test/functional/pci_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_cntr_read_write.cc b/tests/amd_smi_test/functional/perf_cntr_read_write.cc index 804b462a54..8a4901be1c 100755 --- a/tests/amd_smi_test/functional/perf_cntr_read_write.cc +++ b/tests/amd_smi_test/functional/perf_cntr_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_cntr_read_write.h b/tests/amd_smi_test/functional/perf_cntr_read_write.h index 1aef41d396..bea0988d28 100755 --- a/tests/amd_smi_test/functional/perf_cntr_read_write.h +++ b/tests/amd_smi_test/functional/perf_cntr_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_determinism.h b/tests/amd_smi_test/functional/perf_determinism.h index 2803d23db3..1d7cb5dbff 100644 --- a/tests/amd_smi_test/functional/perf_determinism.h +++ b/tests/amd_smi_test/functional/perf_determinism.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_level_read.cc b/tests/amd_smi_test/functional/perf_level_read.cc index bb8d996120..414b4422ea 100755 --- a/tests/amd_smi_test/functional/perf_level_read.cc +++ b/tests/amd_smi_test/functional/perf_level_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_level_read.h b/tests/amd_smi_test/functional/perf_level_read.h index ea4f91e651..1a686cf228 100755 --- a/tests/amd_smi_test/functional/perf_level_read.h +++ b/tests/amd_smi_test/functional/perf_level_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_level_read_write.cc b/tests/amd_smi_test/functional/perf_level_read_write.cc index 0e59053cb7..fde494dbc3 100755 --- a/tests/amd_smi_test/functional/perf_level_read_write.cc +++ b/tests/amd_smi_test/functional/perf_level_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/perf_level_read_write.h b/tests/amd_smi_test/functional/perf_level_read_write.h index 9032f0afe9..9fa74f19d1 100755 --- a/tests/amd_smi_test/functional/perf_level_read_write.h +++ b/tests/amd_smi_test/functional/perf_level_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/power_cap_read_write.cc b/tests/amd_smi_test/functional/power_cap_read_write.cc index 7672afb93e..dbf4726779 100755 --- a/tests/amd_smi_test/functional/power_cap_read_write.cc +++ b/tests/amd_smi_test/functional/power_cap_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/power_cap_read_write.h b/tests/amd_smi_test/functional/power_cap_read_write.h index 8fd44c93af..c913cec99a 100755 --- a/tests/amd_smi_test/functional/power_cap_read_write.h +++ b/tests/amd_smi_test/functional/power_cap_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/power_read_write.cc b/tests/amd_smi_test/functional/power_read_write.cc index 16e006a57c..24e496c14b 100755 --- a/tests/amd_smi_test/functional/power_read_write.cc +++ b/tests/amd_smi_test/functional/power_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/power_read_write.h b/tests/amd_smi_test/functional/power_read_write.h index 6c9168021a..4edb21cfb5 100755 --- a/tests/amd_smi_test/functional/power_read_write.h +++ b/tests/amd_smi_test/functional/power_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/process_info_read.cc b/tests/amd_smi_test/functional/process_info_read.cc index 18bb30d258..f039459363 100755 --- a/tests/amd_smi_test/functional/process_info_read.cc +++ b/tests/amd_smi_test/functional/process_info_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/process_info_read.h b/tests/amd_smi_test/functional/process_info_read.h index f71992706a..6b78411d7a 100755 --- a/tests/amd_smi_test/functional/process_info_read.h +++ b/tests/amd_smi_test/functional/process_info_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/sys_info_read.cc b/tests/amd_smi_test/functional/sys_info_read.cc index 05c327a3b0..aa337bc210 100755 --- a/tests/amd_smi_test/functional/sys_info_read.cc +++ b/tests/amd_smi_test/functional/sys_info_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/sys_info_read.h b/tests/amd_smi_test/functional/sys_info_read.h index a165c81b9e..d241378476 100755 --- a/tests/amd_smi_test/functional/sys_info_read.h +++ b/tests/amd_smi_test/functional/sys_info_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/temp_read.cc b/tests/amd_smi_test/functional/temp_read.cc index e6aa1d88ca..ded598910a 100755 --- a/tests/amd_smi_test/functional/temp_read.cc +++ b/tests/amd_smi_test/functional/temp_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/temp_read.h b/tests/amd_smi_test/functional/temp_read.h index 21a20ea563..eaca3b3b05 100755 --- a/tests/amd_smi_test/functional/temp_read.h +++ b/tests/amd_smi_test/functional/temp_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/version_read.cc b/tests/amd_smi_test/functional/version_read.cc index 22d9f9f84c..1a11263185 100755 --- a/tests/amd_smi_test/functional/version_read.cc +++ b/tests/amd_smi_test/functional/version_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/version_read.h b/tests/amd_smi_test/functional/version_read.h index ff9948db1f..5b8bbdc988 100755 --- a/tests/amd_smi_test/functional/version_read.h +++ b/tests/amd_smi_test/functional/version_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/volt_freq_curv_read.cc b/tests/amd_smi_test/functional/volt_freq_curv_read.cc index a35bacc1dd..4c1a758fc9 100755 --- a/tests/amd_smi_test/functional/volt_freq_curv_read.cc +++ b/tests/amd_smi_test/functional/volt_freq_curv_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/volt_freq_curv_read.h b/tests/amd_smi_test/functional/volt_freq_curv_read.h index dadd26b999..ee9de3a1dd 100755 --- a/tests/amd_smi_test/functional/volt_freq_curv_read.h +++ b/tests/amd_smi_test/functional/volt_freq_curv_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/volt_read.cc b/tests/amd_smi_test/functional/volt_read.cc index 62a0c2b6b4..c28070dfa7 100644 --- a/tests/amd_smi_test/functional/volt_read.cc +++ b/tests/amd_smi_test/functional/volt_read.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/volt_read.h b/tests/amd_smi_test/functional/volt_read.h index 83c1b4cd7e..135dfccd56 100644 --- a/tests/amd_smi_test/functional/volt_read.h +++ b/tests/amd_smi_test/functional/volt_read.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/xgmi_read_write.cc b/tests/amd_smi_test/functional/xgmi_read_write.cc index d252cda1f8..4685ece760 100755 --- a/tests/amd_smi_test/functional/xgmi_read_write.cc +++ b/tests/amd_smi_test/functional/xgmi_read_write.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/functional/xgmi_read_write.h b/tests/amd_smi_test/functional/xgmi_read_write.h index 496c48baf3..87353d8298 100755 --- a/tests/amd_smi_test/functional/xgmi_read_write.h +++ b/tests/amd_smi_test/functional/xgmi_read_write.h @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/tests/amd_smi_test/main.cc b/tests/amd_smi_test/main.cc index 9765ab325f..d38c148f31 100644 --- a/tests/amd_smi_test/main.cc +++ b/tests/amd_smi_test/main.cc @@ -5,7 +5,7 @@ * The University of Illinois/NCSA * Open Source License (NCSA) * - * Copyright (c) 2022, Advanced Micro Devices, Inc. + * Copyright (c) 2023, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: diff --git a/third_party/shared_mutex/shared_mutex.cc b/third_party/shared_mutex/shared_mutex.cc index b1b8dade38..cc61042fa3 100755 --- a/third_party/shared_mutex/shared_mutex.cc +++ b/third_party/shared_mutex/shared_mutex.cc @@ -1,5 +1,5 @@ /* -Modifications Copyright 2019 - 2022 Advanced Micro Devices, Inc. All Rights +Modifications Copyright 2019 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. Copyright (c) 2018 Oleg Yamnikov