rocr: Add copyright for new files (#886)

Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>
This commit is contained in:
Alysa Liu
2025-09-11 10:56:31 -04:00
committed by GitHub
parent 3e1e2408a9
commit 2b2b8329b5
47 changed files with 280 additions and 10 deletions
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <dlfcn.h> #include <dlfcn.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
/** /**
* @brief Opencl kernel to read from a buffer and sum its values * @brief Opencl kernel to read from a buffer and sum its values
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
/** /**
* @brief Opencl kernel to write into a buffer the values of const integer list * @brief Opencl kernel to write into a buffer the values of const integer list
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include<iostream> #include<iostream>
#include<thread> #include<thread>
#include"gtest/gtest.h" #include"gtest/gtest.h"
@@ -1,4 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream> #include <iostream>
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream> #include <iostream>
#include "hsatimer.h" #include "hsatimer.h"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCRTST_UTILS_TIMER_TEST_H_ #ifndef ROCRTST_UTILS_TIMER_TEST_H_
#define ROCRTST_UTILS_TIMER_TEST_H_ #define ROCRTST_UTILS_TIMER_TEST_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "base_test.hpp" #include "base_test.hpp"
// Default Constructor // Default Constructor
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCM_ASYNC_BW_BASE_TEST_H_ #ifndef ROCM_ASYNC_BW_BASE_TEST_H_
#define ROCM_ASYNC_BW_BASE_TEST_H_ #define ROCM_ASYNC_BW_BASE_TEST_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
void error_check(hsa_status_t hsa_error_code, int line_num, const char* str) { void error_check(hsa_status_t hsa_error_code, int line_num, const char* str) {
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCM_ASYNC_BW_COMMON_HPP #ifndef ROCM_ASYNC_BW_COMMON_HPP
#define ROCM_ASYNC_BW_COMMON_HPP #define ROCM_ASYNC_BW_COMMON_HPP
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "hsatimer.hpp" #include "hsatimer.hpp"
#define NANOSECONDS_PER_SECOND 1000000000 #define NANOSECONDS_PER_SECOND 1000000000
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCM_ASYNC_BW_MYTIME_H_ #ifndef ROCM_ASYNC_BW_MYTIME_H_
#define ROCM_ASYNC_BW_MYTIME_H_ #define ROCM_ASYNC_BW_MYTIME_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <unistd.h> #include <unistd.h>
#include <iostream> #include <iostream>
#include "hsatimer.hpp" #include "hsatimer.hpp"
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
// Compiling for Windows Platform // Compiling for Windows Platform
#ifdef _WIN32 #ifdef _WIN32
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCM_ASYNC_BW_UTILS_OS_H_ #ifndef ROCM_ASYNC_BW_UTILS_OS_H_
#define ROCM_ASYNC_BW_UTILS_OS_H_ #define ROCM_ASYNC_BW_UTILS_OS_H_
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __ROCM_ASYNC_BW_H__ #ifndef __ROCM_ASYNC_BW_H__
#define __ROCM_ASYNC_BW_H__ #define __ROCM_ASYNC_BW_H__
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
#include "rocm_async.hpp" #include "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef HSA_RUNTIME_AMD_TOOL_EVENTS_H_ #ifndef HSA_RUNTIME_AMD_TOOL_EVENTS_H_
#define HSA_RUNTIME_AMD_TOOL_EVENTS_H_ #define HSA_RUNTIME_AMD_TOOL_EVENTS_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "get_info.h" #include "get_info.h"
#include <iostream> #include <iostream>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef GET_INFO_H #ifndef GET_INFO_H
#define GET_INFO_H #define GET_INFO_H
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.hpp" #include "common.hpp"
void ErrorCheck(hsa_status_t hsa_error_code) { void ErrorCheck(hsa_status_t hsa_error_code) {
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef COMMON_COMMON_HPP #ifndef COMMON_COMMON_HPP
#define COMMON_COMMON_HPP #define COMMON_COMMON_HPP
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common_utility.h" #include "common_utility.h"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "hsa_base_util.h" #include "hsa_base_util.h"
#include "HSAILAmdExt.h" #include "HSAILAmdExt.h"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __HSA_BASE__ #ifndef __HSA_BASE__
#define __HSA_BASE__ #define __HSA_BASE__
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCR_PERF_CNTR_APP_H_ #ifndef ROCR_PERF_CNTR_APP_H_
#define ROCR_PERF_CNTR_APP_H_ #define ROCR_PERF_CNTR_APP_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef HSA_RSRC_FACTORY_H_ #ifndef HSA_RSRC_FACTORY_H_
#define HSA_RSRC_FACTORY_H_ #define HSA_RSRC_FACTORY_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "hsa_test.h" #include "hsa_test.h"
#include <atomic> #include <atomic>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef HSA_TEST_H #ifndef HSA_TEST_H
#define HSA_TEST_H #define HSA_TEST_H
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "hsatimer.h" #include "hsatimer.h"
PerfTimer::PerfTimer() PerfTimer::PerfTimer()
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __MYTIME__ #ifndef __MYTIME__
#define __MYTIME__ #define __MYTIME__
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifdef _WIN32 // Compiling for Windows Platform #ifdef _WIN32 // Compiling for Windows Platform
#include <stdlib.h> #include <stdlib.h>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef HSA_PERF_SRC_UTILS_OS_H_ #ifndef HSA_PERF_SRC_UTILS_OS_H_
#define HSA_PERF_SRC_UTILS_OS_H_ #define HSA_PERF_SRC_UTILS_OS_H_
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "utilities.h" #include "utilities.h"
/* /*
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __HSA_UTILITY__ #ifndef __HSA_UTILITY__
#define __HSA_UTILITY__ #define __HSA_UTILITY__