[Palamida scan] SWDEV-553054 Adding missing copyrights information (#900)

* Add missing copyright headers in rocprofiler-systems
* Update python-tests
* Update causal test

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
Julian Jose
2025-09-12 23:47:58 +05:30
committed by GitHub
parent 7ed6000e32
commit 8157437273
21 changed files with 111 additions and 64 deletions
@@ -1,3 +1,6 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include "causal.hpp"
#include "impl.hpp"
@@ -1,3 +1,5 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include <atomic>
#include <cstdio>
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import rocprofsys
import argparse
@@ -1,3 +1,5 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include <rocprofiler-systems/user.h>
@@ -1,3 +1,5 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include <atomic>
#include <cstdio>
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import os
import sys
import random
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import os
import sys
import random
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import os
import sys
import time
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import os
import sys
import random
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import os
import sys
import time
@@ -1,5 +1,8 @@
#!@PYTHON_EXECUTABLE@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import os
import sys
import time
@@ -1,3 +1,10 @@
/*************************************************************************
* Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved.
* Modifications Copyright (c) 2020-2022 Advanced Micro Devices, Inc. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#ifndef RCCL_TESTS_GIT_VERSION_H_
#define RCCL_TESTS_GIT_VERSION_H_
@@ -1,3 +1,10 @@
/*************************************************************************
* Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved.
* Modifications Copyright (c) 2020-2022 Advanced Micro Devices, Inc. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include "timer.h"
// Make sure to compile this translation unit with the host compiler and not
@@ -1,3 +1,10 @@
/*************************************************************************
* Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved.
* Modifications Copyright (c) 2020-2022 Advanced Micro Devices, Inc. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#ifndef _408319ecdd5b47b28bf8f511c4fdf816
#define _408319ecdd5b47b28bf8f511c4fdf816
@@ -1,3 +1,6 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include <cstdio>
#include <cstdlib>
#include <string>
@@ -1,3 +1,6 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include <chrono>
#include <cstdio>
#include <cstdlib>
@@ -1,3 +1,5 @@
// Copyright (c) Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
#include <rocprofiler-systems/categories.h>
#include <rocprofiler-systems/types.h>
@@ -1,5 +1,8 @@
#!/bin/bash
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
EXE=$(basename ${1})
DIR=gperftools-output
mkdir -p ${DIR}
@@ -1,4 +1,27 @@
#!/bin/bash -e
# MIT License
#
# Copyright (c) 2024-2025 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
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# This script allows CMAKE_CXX_COMPILER to be a standard
# C++ compiler and rocprofiler-systems sets RULE_LAUNCH_COMPILE and
@@ -1,24 +1,5 @@
# MIT License
#
# Copyright (c) 2025 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
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
# -------------------------------------------------------------------------------------- #
#
@@ -113,7 +94,7 @@ rocprofiler_systems_add_causal_test(
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
)
# set(_causal_e2e_exe_args 80 100 432525 100000000) set(_causal_e2e_exe_args 80 12 432525
# set(_causal_e2e_exe_args 80 103 432525 100000000) set(_causal_e2e_exe_args 80 12 432525
# 500000000)
set(_causal_e2e_exe_args 80 50 432525 100000000)
set(_causal_common_args
@@ -148,8 +129,8 @@ causal_e2e_args_and_validation(_causal_slow_func slow-func "-F" "cpu_slow_func"
5
)
causal_e2e_args_and_validation(_causal_fast_func fast-func "-F" "cpu_fast_func" 0 0 0 5)
causal_e2e_args_and_validation(_causal_line_100 line-100 "-S" "causal.cpp:100" 10 20 20 5)
causal_e2e_args_and_validation(_causal_line_110 line-110 "-S" "causal.cpp:110" 0 0 0 5)
causal_e2e_args_and_validation(_causal_line_103 line-103 "-S" "causal.cpp:103" 10 20 20 5)
causal_e2e_args_and_validation(_causal_line_113 line-113 "-S" "causal.cpp:113" 0 0 0 5)
if(ROCPROFSYS_BUILD_NUMBER GREATER 1)
set(_causal_e2e_environment)
@@ -189,13 +170,13 @@ rocprofiler_systems_add_causal_test(
rocprofiler_systems_add_causal_test(
SKIP_BASELINE
NAME cpu-rocprofsys-line-100-e2e
NAME cpu-rocprofsys-line-103-e2e
TARGET causal-cpu-rocprofsys
LABELS "causal-e2e"
RUN_ARGS ${_causal_e2e_exe_args}
CAUSAL_MODE "line"
CAUSAL_ARGS ${_causal_line_100_args}
CAUSAL_VALIDATE_ARGS ${_causal_line_100_valid}
CAUSAL_ARGS ${_causal_line_103_args}
CAUSAL_VALIDATE_ARGS ${_causal_line_103_valid}
CAUSAL_PASS_REGEX
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
ENVIRONMENT "${_causal_e2e_environment}"
@@ -204,13 +185,13 @@ rocprofiler_systems_add_causal_test(
rocprofiler_systems_add_causal_test(
SKIP_BASELINE
NAME cpu-rocprofsys-line-110-e2e
NAME cpu-rocprofsys-line-113-e2e
TARGET causal-cpu-rocprofsys
LABELS "causal-e2e"
RUN_ARGS ${_causal_e2e_exe_args}
CAUSAL_MODE "line"
CAUSAL_ARGS ${_causal_line_110_args}
CAUSAL_VALIDATE_ARGS ${_causal_line_110_valid}
CAUSAL_ARGS ${_causal_line_113_args}
CAUSAL_VALIDATE_ARGS ${_causal_line_113_valid}
CAUSAL_PASS_REGEX
"Starting causal experiment #1(.*)causal/experiments.json(.*)causal/experiments.coz"
ENVIRONMENT "${_causal_e2e_environment}"
@@ -1,24 +1,5 @@
# MIT License
#
# Copyright (c) 2025 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
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
# -------------------------------------------------------------------------------------- #
#
@@ -153,7 +134,7 @@ foreach(_VERSION ${ROCPROFSYS_PYTHON_VERSIONS})
COMMAND ${ROCPROFSYS_CAT_COMMAND}
PYTHON_VERSION ${_VERSION}
FILE rocprof-sys-tests-output/python-builtin/${_VERSION}/trip_count.txt
PASS_REGEX "\\\[inefficient\\\]\\\[builtin.py:14\\\]"
PASS_REGEX "\\\[inefficient\\\]\\\[builtin.py:17\\\]"
DEPENDS python-builtin-${_VERSION}
ENVIRONMENT "${_python_environment}"
)
@@ -259,18 +240,18 @@ foreach(_VERSION ${ROCPROFSYS_PYTHON_VERSIONS})
)
set(python_builtin_labels
[run][builtin.py:28]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[fib][builtin.py:10]
[inefficient][builtin.py:14]
[run][builtin.py:31]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[fib][builtin.py:13]
[inefficient][builtin.py:17]
)
set(python_builtin_count
5