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
vanhempi 3e1e2408a9
commit 2b2b8329b5
47 muutettua tiedostoa jossa 280 lisäystä ja 10 poistoa
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <stdio.h>
#include <errno.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 <stdio.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
@@ -1,4 +1,9 @@
/*
* 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
*
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include<iostream>
#include<thread>
#include"gtest/gtest.h"
@@ -1,4 +1,8 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream>
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream>
#include "hsatimer.h"
#include <unistd.h>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef 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"
// Default Constructor
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef 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"
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
#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"
#define NANOSECONDS_PER_SECOND 1000000000
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef 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 <iostream>
#include "hsatimer.hpp"
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
// Compiling for Windows Platform
#ifdef _WIN32
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef ROCM_ASYNC_BW_UTILS_OS_H_
#define ROCM_ASYNC_BW_UTILS_OS_H_
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.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__
#define __ROCM_ASYNC_BW_H__
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.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 "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.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 "rocm_async.hpp"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.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 "rocm_async.hpp"
@@ -1,4 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common.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_
#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 <iostream>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef 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"
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
#define COMMON_COMMON_HPP
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "common_utility.h"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream>
#include <algorithm>
#include <cmath>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#include "hsa_base_util.h"
#include "HSAILAmdExt.h"
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __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 <stdlib.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_
#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 <stdlib.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_
#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 <atomic>
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef 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"
PerfTimer::PerfTimer()
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __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
#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_
#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"
/*
@@ -1,3 +1,9 @@
/*
* Copyright © Advanced Micro Devices, Inc., or its affiliates.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __HSA_UTILITY__
#define __HSA_UTILITY__