2022-12-29 08:45:34 +01:00
|
|
|
/*
|
2023-12-28 18:30:45 +01:00
|
|
|
Copyright (c) 2021 - 2024 Advanced Micro Devices, Inc. All rights reserved.
|
2022-12-29 08:45:34 +01:00
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2023-11-26 19:44:41 +00:00
|
|
|
#include <hip_test_common.hh>
|
|
|
|
|
|
2022-12-29 08:45:34 +01:00
|
|
|
// Test groups are named based on the group names from hip_api_runtime.h, with adding "Test" suffix
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @defgroup CallbackTest Callback Activity APIs
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for the callback/Activity of HIP runtime API.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup ContextTest Context Management
|
2022-12-29 08:45:34 +01:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the context management functions of HIP runtime API.
|
|
|
|
|
* @warning All Context Management APIs are **deprecated** and shall not be implemented.
|
2023-06-28 06:14:00 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-12-28 16:45:02 +01:00
|
|
|
/**
|
|
|
|
|
* @defgroup AtomicsTest Device Atomics
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for the Device Atomic APIs.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-07-18 09:32:03 +02:00
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup DeviceLanguageTest Device Language
|
2023-07-18 09:32:03 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the Device Language API.
|
2023-07-18 09:32:03 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-28 06:14:00 +02:00
|
|
|
/**
|
|
|
|
|
* @defgroup DeviceTest Device Management
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for device management functions of HIP runtime API.
|
2022-12-29 08:45:34 +01:00
|
|
|
* @}
|
|
|
|
|
*/
|
2023-05-10 10:17:47 +05:30
|
|
|
|
2023-06-28 06:15:15 +02:00
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup DriverTest Initialization and Version
|
2023-06-28 06:15:53 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the initialization and version functions of HIP runtime API.
|
2023-06-28 06:15:53 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-28 06:17:04 +02:00
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup DynamicLoadingTest Kernel Loading Management
|
2023-06-28 06:17:04 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes the different kernel launch approaches.
|
2023-06-28 06:17:04 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-28 12:16:40 +02:00
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup ErrorTest Error Handling
|
2023-06-28 12:16:40 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the error handling functions of HIP runtime API.
|
2023-06-28 12:16:40 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-07-09 05:38:20 +02:00
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup EventTest Event Management
|
2023-07-09 05:38:20 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the event management functions of HIP runtime API.
|
2023-07-09 05:38:20 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-07-08 17:20:41 +02:00
|
|
|
/**
|
|
|
|
|
* @defgroup ExecutionTest Execution Control
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for the execution control functions of HIP runtime API.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-05-10 10:17:47 +05:30
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup GraphTest Graph Management
|
2023-05-10 10:17:47 +05:30
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the graph management types & functions of HIP runtime API.
|
2023-05-10 10:17:47 +05:30
|
|
|
* @}
|
|
|
|
|
*/
|
2023-06-21 15:59:33 +05:30
|
|
|
|
2023-08-14 20:53:37 +05:30
|
|
|
/**
|
2024-02-02 12:29:18 +05:30
|
|
|
* @defgroup KernelTest Kernel Functions Management
|
2023-08-14 20:53:37 +05:30
|
|
|
* @{
|
2024-02-02 12:29:18 +05:30
|
|
|
* This section describes the various kernel functions invocation.
|
2023-11-26 19:44:41 +00:00
|
|
|
* @}
|
2023-12-28 18:20:43 +01:00
|
|
|
*/
|
2023-11-26 19:44:41 +00:00
|
|
|
|
|
|
|
|
/**
|
2023-12-28 18:20:43 +01:00
|
|
|
* @defgroup SyncthreadsTest Synchronization Functions
|
2023-08-14 20:53:37 +05:30
|
|
|
* @{
|
2023-12-28 18:20:43 +01:00
|
|
|
* This section describes tests for Synchronization Functions.
|
|
|
|
|
* @}
|
2023-12-28 18:19:15 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @defgroup ThreadfenceTest Memory Fence Functions
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for Memory Fence Functions.
|
2023-11-26 19:44:41 +00:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-28 06:17:04 +02:00
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup MemoryTest memory Management APIs
|
2023-06-28 06:17:04 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes the memory management types & functions of HIP runtime API.
|
2023-06-28 06:17:04 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-21 15:59:33 +05:30
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup PeerToPeerTest PeerToPeer Device Memory Access
|
2023-06-21 15:59:33 +05:30
|
|
|
* @{
|
2024-02-02 12:29:18 +05:30
|
|
|
* This section describes tests for the PeerToPeer device memory access functions of HIP runtime
|
|
|
|
|
* API.
|
2023-08-14 20:59:31 +05:30
|
|
|
* @warning PeerToPeer support is experimental.
|
2023-06-21 15:59:33 +05:30
|
|
|
* @}
|
|
|
|
|
*/
|
2023-07-08 20:54:42 +05:30
|
|
|
|
2023-11-06 12:52:40 +00:00
|
|
|
/**
|
|
|
|
|
* @defgroup PerformanceTest Performance tests
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes performance tests for the target API groups and use-cases.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup ShflTest warp shuffle function Management
|
2023-07-09 08:55:01 +05:30
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes the warp shuffle types & functions of HIP runtime API.
|
2024-03-04 11:51:34 +05:30
|
|
|
* @}
|
2023-04-11 17:16:22 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @defgroup p2pTest P2P Management
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes the P2P management types & functions of HIP runtime API.
|
2023-07-09 08:55:01 +05:30
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-12-09 00:39:28 +05:30
|
|
|
/**
|
|
|
|
|
* @defgroup StreamOTest Ordered Memory Allocator
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes the tests for Stream Ordered Memory Allocator functions of HIP runtime
|
|
|
|
|
* API.
|
2024-02-27 14:02:32 +00:00
|
|
|
* @}
|
2023-12-09 00:39:28 +05:30
|
|
|
*/
|
|
|
|
|
|
2023-07-08 20:54:42 +05:30
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup StreamTest Stream Management
|
2023-07-09 08:53:17 +05:30
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes the stream management types & functions of HIP runtime API.
|
2023-07-09 08:53:17 +05:30
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-12-28 14:47:48 +01:00
|
|
|
/**
|
|
|
|
|
* @defgroup ModuleTest Module Management
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes the module management types & functions of HIP runtime API.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-07-09 08:53:17 +05:30
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup TextureTest Texture Management
|
2023-07-08 20:54:42 +05:30
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the texture management functions of HIP runtime API.
|
2023-07-08 20:54:42 +05:30
|
|
|
* @}
|
|
|
|
|
*/
|
2023-07-18 09:25:00 +02:00
|
|
|
|
|
|
|
|
/**
|
2023-08-14 20:59:31 +05:30
|
|
|
* @defgroup VectorTypeTest Vector types
|
2023-07-18 09:25:00 +02:00
|
|
|
* @{
|
2023-08-14 20:59:31 +05:30
|
|
|
* This section describes tests for the Vector type functions and operators.
|
2023-07-18 09:25:00 +02:00
|
|
|
* @}
|
|
|
|
|
*/
|
2023-06-22 17:32:36 +05:30
|
|
|
|
2024-02-01 17:33:39 +05:30
|
|
|
/**
|
|
|
|
|
* @defgroup MathTest Math Device Functions
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for device math functions of HIP runtime API.
|
2023-12-28 15:46:50 +01:00
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-22 17:32:36 +05:30
|
|
|
/**
|
|
|
|
|
* @defgroup PrintfTest Printf API Management
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes the various Printf use case Scenarios.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
2023-12-09 00:57:19 +05:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @defgroup SurfaceTest Surface Management
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes tests for the surface management functions of HIP runtime API.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
2023-12-08 10:11:51 +00:00
|
|
|
|
2023-12-28 18:30:45 +01:00
|
|
|
/**
|
|
|
|
|
* @defgroup ComplexTest Complex type
|
2023-12-08 10:11:51 +00:00
|
|
|
* @{
|
|
|
|
|
* This section describes tests for the Complex type functions.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
2023-12-28 18:33:28 +01:00
|
|
|
|
|
|
|
|
/**
|
2024-02-02 12:29:18 +05:30
|
|
|
* @defgroup VirtualMemoryManagementTest Virtual Memory Management APIs
|
2023-12-28 18:33:28 +01:00
|
|
|
* @{
|
2024-02-02 12:29:18 +05:30
|
|
|
* This section describes the virtual memory management types & functions of HIP runtime API.
|
2023-12-28 18:33:28 +01:00
|
|
|
* @}
|
|
|
|
|
*/
|
2023-04-06 17:09:55 +05:30
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @defgroup ModuleTest Module Functions Management
|
|
|
|
|
* @{
|
|
|
|
|
* This section describes the loading of modules from code object files and invocation of different kernels.
|
|
|
|
|
* @}
|
|
|
|
|
*/
|