已合并
【PR】: mv core/api_impl->api/impl #3999
duanpengliang创建于 28 天前
【PR】: mv core/api_impl->api/impl #3999
已合并
duanpengliang创建于 28 天前
52 个文件变更+212-209
@@ -252,11 +252,11 @@ description: 用于 Runtime 场景下新增 aclrt 接口开发,覆盖需求澄
252| 7 | `src/runtime/api/api_c_xxx.cc` | RT C 层接口实现 |252| 7 | `src/runtime/api/api_c_xxx.cc` | RT C 层接口实现 |
253| 8 | `src/runtime/api/api_c_tiny_stub.cc` | Tiny stub 实现 |253| 8 | `src/runtime/api/api_c_tiny_stub.cc` | Tiny stub 实现 |
254| 9 | `src/runtime/api/api.hpp` | Api 基类接口声明 |254| 9 | `src/runtime/api/api.hpp` | Api 基类接口声明 |
255-| 10 | `src/runtime/core/src/api_impl/api_impl.hpp` | ApiImpl 接口声明 |255+| 10 | `src/runtime/api/impl/api_impl.hpp` | ApiImpl 接口声明 |
256-| 11 | `src/runtime/core/src/api_impl/api_decorator.hpp` | ApiDecorator 接口声明 |256+| 11 | `src/runtime/api/impl/api_decorator.hpp` | ApiDecorator 接口声明 |
257-| 12 | `src/runtime/core/src/api_impl/api_decorator.cc` | ApiDecorator 接口实现 |257+| 12 | `src/runtime/api/impl/api_decorator.cc` | ApiDecorator 接口实现 |
258-| 13 | `src/runtime/core/src/api_impl/api_error.hpp` | ApiErrorDecorator 接口声明 |258+| 13 | `src/runtime/api/impl/api_error.hpp` | ApiErrorDecorator 接口声明 |
259-| 14 | `src/runtime/core/src/api_impl/api_error.cc` | ApiErrorDecorator 参数校验实现 |259+| 14 | `src/runtime/api/impl/api_error.cc` | ApiErrorDecorator 参数校验实现 |
260| 15 | `src/runtime/core/src/profiler/api_profile_decorator.hpp` | ApiProfileDecorator 接口声明 |260| 15 | `src/runtime/core/src/profiler/api_profile_decorator.hpp` | ApiProfileDecorator 接口声明 |
261| 16 | `src/runtime/core/src/profiler/api_profile_decorator.cc` | ApiProfileDecorator 接口实现 |261| 16 | `src/runtime/core/src/profiler/api_profile_decorator.cc` | ApiProfileDecorator 接口实现 |
262| 17 | `src/runtime/inc/common/profiler_struct.hpp` | Profiler 枚举常量定义 |262| 17 | `src/runtime/inc/common/profiler_struct.hpp` | Profiler 枚举常量定义 |
@@ -110,8 +110,8 @@ rtXxx(...)
110 110 
111### 步骤 5:调用点改造(ApiImpl 层)111### 步骤 5:调用点改造(ApiImpl 层)
112 112 
113-- `src/api_impl/api_impl.cc`(基类):改为调用统一全局函数113+- `src/runtime/api/impl/api_impl.cc`(基类):改为调用统一全局函数
114-- `src/api_impl/api_impl_david.cc`(David):仅保留已有差异的 override,改为调用同名统一全局函数114+- `src/runtime/api/impl/api_impl_david.cc`(David):仅保留已有差异的 override,改为调用同名统一全局函数
115 115 
116继承关系约束:116继承关系约束:
117- 若重构前 David 继承基类实现(未 override) -> 重构后必须保持继承,不新增 override117- 若重构前 David 继承基类实现(未 override) -> 重构后必须保持继承,不新增 override
@@ -209,7 +209,7 @@ timeout 120s bash tests/build_ut.sh --ut runtime --target runtime_ut -- --gtest_
209rg "ForStars|ForDavid" src/runtime/core/src src/runtime/core/inc_c209rg "ForStars|ForDavid" src/runtime/core/src src/runtime/core/inc_c
210 210 
211# 检查残留的 curCtx->Xxx 调用211# 检查残留的 curCtx->Xxx 调用
212-rg "curCtx->(<接口名1>|<接口名2>)" src/runtime/core/src/api_impl212+rg "curCtx->(<接口名1>|<接口名2>)" src/runtime/api/impl
213 213 
214# 检查 Context 中是否残留目标接口声明/实现214# 检查 Context 中是否残留目标接口声明/实现
215rg -n "Context::(<接口名1>|<接口名2>)" src/runtime/core/inc/context/context.hpp src/runtime/core/src/context/context.cc215rg -n "Context::(<接口名1>|<接口名2>)" src/runtime/core/inc/context/context.hpp src/runtime/core/src/context/context.cc
@@ -30,6 +30,7 @@ set(LOCAL_ASCEND_C_FILE_PATH ${CMAKE_CURRENT_BINARY_DIR}/ascend_hal.c)
30add_custom_command(30add_custom_command(
31 OUTPUT ${LOCAL_ASCEND_C_FILE_PATH}31 OUTPUT ${LOCAL_ASCEND_C_FILE_PATH}
32 COMMAND ${RUNTIME_PYTHON} ${LOCAL_H2C_PY_PATH} -i ${LOCAL_ASCEND_H_FILE_PATH} ${LOCAL_ASCEND_H_FILE_PATH1} ${LOCAL_ASCEND_H_FILE_PATH2} -o ${LOCAL_ASCEND_C_FILE_PATH}32 COMMAND ${RUNTIME_PYTHON} ${LOCAL_H2C_PY_PATH} -i ${LOCAL_ASCEND_H_FILE_PATH} ${LOCAL_ASCEND_H_FILE_PATH1} ${LOCAL_ASCEND_H_FILE_PATH2} -o ${LOCAL_ASCEND_C_FILE_PATH}
33+ DEPENDS ${LOCAL_H2C_PY_PATH} ${LOCAL_ASCEND_H_FILE_PATH} ${LOCAL_ASCEND_H_FILE_PATH1} ${LOCAL_ASCEND_H_FILE_PATH2}
33)34)
34 35 
35target_sources(ascend_hal_stub PRIVATE36target_sources(ascend_hal_stub PRIVATE
@@ -91,6 +92,7 @@ set(LOCAL_DSMI_C_FILE_PATH ${CMAKE_CURRENT_BINARY_DIR}/dsmi_common_interface.c)
91add_custom_command(92add_custom_command(
92 OUTPUT ${LOCAL_DSMI_C_FILE_PATH}93 OUTPUT ${LOCAL_DSMI_C_FILE_PATH}
93 COMMAND ${RUNTIME_PYTHON} ${LOCAL_H2C_PY_PATH} -i ${LOCAL_DSMI_H_FILE_PATH} -o ${LOCAL_DSMI_C_FILE_PATH}94 COMMAND ${RUNTIME_PYTHON} ${LOCAL_H2C_PY_PATH} -i ${LOCAL_DSMI_H_FILE_PATH} -o ${LOCAL_DSMI_C_FILE_PATH}
95+ DEPENDS ${LOCAL_H2C_PY_PATH} ${LOCAL_DSMI_H_FILE_PATH}
94)96)
95 97 
96add_library(drvdsmi_host_stub SHARED)98add_library(drvdsmi_host_stub SHARED)
@@ -21,8 +21,8 @@ import sys
21import argparse21import argparse
22import re22import re
23 23 
24-PATTERN_FUNCTION = re.compile(r'.+\w+\([^;]*\);')24+PATTERN_FUNCTION = re.compile(r'.+\w+\([^;]*\)\s*;')
25-PATTERN_FUNCTION_WEAK = re.compile(r'.+\w+\([^;]*\) ASCEND_HAL_WEAK;')25+PATTERN_FUNCTION_WEAK = re.compile(r'.+\w+\([^;]*\)\s+ASCEND_HAL_WEAK\s*;')
26INGORE_LIST = ["#ifndef __ASCEND_HAL_H__", "#ifndef ASCEND_EXTERNAL_H", 26INGORE_LIST = ["#ifndef __ASCEND_HAL_H__", "#ifndef ASCEND_EXTERNAL_H",
27 "#ifndef __ASCEND_INPACKAGE_HAL_H__", "#ifndef TS_API_H", "#ifndef __DRV_INTERNAL_H__",27 "#ifndef __ASCEND_INPACKAGE_HAL_H__", "#ifndef TS_API_H", "#ifndef __DRV_INTERNAL_H__",
28 "#ifndef ASCEND_HAL_BASE_H"]28 "#ifndef ASCEND_HAL_BASE_H"]
@@ -48,14 +48,15 @@ def collect_content(file_path):
48 left += i.count('(')48 left += i.count('(')
49 right += i.count(')')49 right += i.count(')')
50 i = i.replace('extern', '').replace('SECUREC_API', '')50 i = i.replace('extern', '').replace('SECUREC_API', '')
51- is_declaration_prefix = i.lstrip().startswith("DLLEXPORT") and '(' not in i51+ is_exported_declaration = i.lstrip().startswith("DLLEXPORT")
52+ is_declaration_prefix = is_exported_declaration and '(' not in i
52 if change_line == 0:53 if change_line == 0:
53 contents.append(i.rstrip('\r\n') + ' ' if is_declaration_prefix else i.strip(" "))54 contents.append(i.rstrip('\r\n') + ' ' if is_declaration_prefix else i.strip(" "))
54 elif change_line == 1:55 elif change_line == 1:
55 contents[-1] = contents[-1] + i56 contents[-1] = contents[-1] + i
56- if left != right or is_declaration_prefix:57+ if left != right or (is_exported_declaration and not i.strip().endswith(";")):
57 change_line = 158 change_line = 1
58- if i.strip().endswith(";") or (change_line == 1 and left == right and not is_declaration_prefix):59+ if i.strip().endswith(";"):
59 change_line = 060 change_line = 0
60 left = 061 left = 0
61 right = 062 right = 0
@@ -89,7 +90,7 @@ def collect_functions(file_path):
89 signatures.append(i)90 signatures.append(i)
90 endif_num += 191 endif_num += 1
91 92 
92- match = PATTERN_FUNCTION.match(i) or PATTERN_FUNCTION_WEAK.match(i)93+ match = PATTERN_FUNCTION_WEAK.match(i) or PATTERN_FUNCTION.match(i)
93 if match:94 if match:
94 signatures.append(i)95 signatures.append(i)
95 return signatures96 return signatures
@@ -159,11 +160,11 @@ def generate_function(header_files):
159 160 
160 print("inc file:{}, functions numbers:{}".format(header_file, len(functions)))161 print("inc file:{}, functions numbers:{}".format(header_file, len(functions)))
161 for func in functions:162 for func in functions:
162- if PATTERN_FUNCTION.match(func):163+ if PATTERN_FUNCTION_WEAK.match(func):
163- content.append(implement_function(func) + "\n")164+ delete_weak_func = re.sub(r'\s+ASCEND_HAL_WEAK(?=\s*;)', '', func)
164- elif PATTERN_FUNCTION_WEAK.match(func):
165- delete_weak_func = func.replace(" ASCEND_HAL_WEAK", "")
166 content.append(implement_function(delete_weak_func) + "\n")165 content.append(implement_function(delete_weak_func) + "\n")
166+ elif PATTERN_FUNCTION.match(func):
167+ content.append(implement_function(func) + "\n")
167 else:168 else:
168 content.append(func)169 content.append(func)
169 content.append("\n")170 content.append("\n")
@@ -55,7 +55,7 @@ runtime/
55├── api/ # API 接口层55├── api/ # API 接口层
56│ ├── api.hpp # Runtime API 定义56│ ├── api.hpp # Runtime API 定义
57│ ├── api_c_*.cc # C 语言接口实现57│ ├── api_c_*.cc # C 语言接口实现
58-│ └── api_impl/ # API 版本实现58+│ └── impl/ # API 内部实现
59├── core/59├── core/
60│ ├── inc/ # 内部头文件60│ ├── inc/ # 内部头文件
61│ └── src/ # 核心实现61│ └── src/ # 核心实现
@@ -71,8 +71,7 @@ runtime/
71│ ├── profiler/ # Profiler 性能分析71│ ├── profiler/ # Profiler 性能分析
72│ ├── launch/ # Kernel Launch72│ ├── launch/ # Kernel Launch
73│ ├── notify/ # Notify 通知73│ ├── notify/ # Notify 通知
74-── dfx/ # DFX 功能74+── dfx/ # DFX 功能
75-│ └── api_impl/ # API 实现
76├── driver/ # 驱动适配层75├── driver/ # 驱动适配层
77│ ├── v100/ # v100 版本驱动76│ ├── v100/ # v100 版本驱动
78│ ├── v200/ # v200 版本驱动77│ ├── v200/ # v200 版本驱动
@@ -197,7 +197,7 @@ flowchart TD
197- **线程同步**:等待所有注册的后台线程进入阻塞状态,确保状态一致性197- **线程同步**:等待所有注册的后台线程进入阻塞状态,确保状态一致性
198- **错误处理**:若当前状态非 RUNNING 或等待超时,则返回错误码198- **错误处理**:若当前状态非 RUNNING 或等待超时,则返回错误码
199 199 
200-关键文件位置:`src/runtime/core/src/api_impl/api_impl.cc`200+关键文件位置:`src/runtime/api/impl/api_impl.cc`
201 201 
202#### 进程备份流程202#### 进程备份流程
203 203 
@@ -218,7 +218,7 @@ flowchart TD
218- **后处理阶段**:触发 BACKUP_POST 回调,将进程状态切换为 BACKED_UP218- **后处理阶段**:触发 BACKUP_POST 回调,将进程状态切换为 BACKED_UP
219 219 
220关键文件位置:220关键文件位置:
221-- `src/runtime/core/src/api_impl/api_impl.cc`221+- `src/runtime/api/impl/api_impl.cc`
222- `src/runtime/feature/snapshot/snapshot_process_helper.cc`222- `src/runtime/feature/snapshot/snapshot_process_helper.cc`
223 223 
224#### 进程恢复流程224#### 进程恢复流程
@@ -244,7 +244,7 @@ flowchart TD
244- **后处理阶段**:触发 RESTORE_POST 回调,将进程状态切换为 LOCKED244- **后处理阶段**:触发 RESTORE_POST 回调,将进程状态切换为 LOCKED
245 245 
246关键文件位置:246关键文件位置:
247-- `src/runtime/core/src/api_impl/api_impl.cc`247+- `src/runtime/api/impl/api_impl.cc`
248- `src/runtime/feature/snapshot/snapshot_process_helper.cc`248- `src/runtime/feature/snapshot/snapshot_process_helper.cc`
249 249 
250### 4.2 核心组件详解250### 4.2 核心组件详解
@@ -375,7 +375,7 @@ DeviceSnapshot --> TaskHandlers
375| IDeviceSnapshotOps | 设备快照操作抽象接口 | `core/inc/common/idevice_snapshot_ops.hpp` |375| IDeviceSnapshotOps | 设备快照操作抽象接口 | `core/inc/common/idevice_snapshot_ops.hpp` |
376| DeviceSnapshot | 设备内存备份/恢复实现 | `feature/snapshot/device_snapshot.hpp` |376| DeviceSnapshot | 设备内存备份/恢复实现 | `feature/snapshot/device_snapshot.hpp` |
377| SnapShotProcessHelper | 备份恢复辅助函数 | `feature/snapshot/snapshot_process_helper.hpp` |377| SnapShotProcessHelper | 备份恢复辅助函数 | `feature/snapshot/snapshot_process_helper.hpp` |
378-| ApiImpl | API 实现与流程协调 | `core/src/api_impl/api_impl.cc` |378+| ApiImpl | API 实现与流程协调 | `api/impl/api_impl.cc` |
379| TaskHandlers | 任务类型处理器 | `feature/snapshot/device_snapshot.hpp` |379| TaskHandlers | 任务类型处理器 | `feature/snapshot/device_snapshot.hpp` |
380 380 
381### 4.4 核心数据结构381### 4.4 核心数据结构
@@ -576,7 +576,7 @@ API 层通过 `GLOBAL_STATE_WAIT_IF_LOCKED()` 宏实现阻塞:
576| API 头文件 | `pkg_inc/runtime/rts/rts_snapshot.h` | 对外接口定义、状态枚举 |576| API 头文件 | `pkg_inc/runtime/rts/rts_snapshot.h` | 对外接口定义、状态枚举 |
577| ACL 实现 | `src/acl/aclrt_impl/snapshot.cpp` | ACL 层接口封装 |577| ACL 实现 | `src/acl/aclrt_impl/snapshot.cpp` | ACL 层接口封装 |
578| Runtime API | `src/runtime/api/api_c_snapshot.cc` | C API 实现 |578| Runtime API | `src/runtime/api/api_c_snapshot.cc` | C API 实现 |
579-| API 实现 | `src/runtime/core/src/api_impl/api_impl.cc` | SnapShotProcess 接口实现 |579+| API 实现 | `src/runtime/api/impl/api_impl.cc` | SnapShotProcess 接口实现 |
580| 状态管理 | `src/runtime/core/inc/common/global_state_manager.hpp` | GlobalStateManager 类定义 |580| 状态管理 | `src/runtime/core/inc/common/global_state_manager.hpp` | GlobalStateManager 类定义 |
581| 状态管理实现 | `src/runtime/core/src/common/global_state_manager.cc` | 进程状态管理实现 |581| 状态管理实现 | `src/runtime/core/src/common/global_state_manager.cc` | 进程状态管理实现 |
582| 回调管理 | `src/runtime/feature/snapshot/snapshot_callback_manager.hpp` | SnapshotCallbackManager 类定义 |582| 回调管理 | `src/runtime/feature/snapshot/snapshot_callback_manager.hpp` | SnapshotCallbackManager 类定义 |
@@ -239,7 +239,7 @@ Runtime按Device/TS维护默认Context。`aclrtSetDevice()`创建或复用对应
239**关键代码**239**关键代码**
240 240 
241```cpp241```cpp
242-// 文件位置:src/runtime/core/src/api_impl/api_impl.cc242+// 文件位置:src/runtime/api/impl/api_impl.cc
243rtError_t ApiImpl::SetDevice(const int32_t devId)243rtError_t ApiImpl::SetDevice(const int32_t devId)
244{244{
245 Runtime * const rt = Runtime::Instance();245 Runtime * const rt = Runtime::Instance();
@@ -297,7 +297,7 @@ flowchart TD
297**关键代码**297**关键代码**
298 298 
299```cpp299```cpp
300-// 文件位置:src/runtime/core/src/api_impl/api_impl.cc300+// 文件位置:src/runtime/api/impl/api_impl.cc
301rtError_t ApiImpl::ContextCreate(Context ** const inCtx, const int32_t devId)301rtError_t ApiImpl::ContextCreate(Context ** const inCtx, const int32_t devId)
302{302{
303 rtError_t error = NewContext(static_cast<uint32_t>(devId), tsId, inCtx);303 rtError_t error = NewContext(static_cast<uint32_t>(devId), tsId, inCtx);
@@ -973,9 +973,9 @@ classDiagram
973| RTS C API | `src/runtime/api/api_c_context.cc` | Context RTS转调入口 |973| RTS C API | `src/runtime/api/api_c_context.cc` | Context RTS转调入口 |
974| Device C API | `src/runtime/api/api_c_device.cc` | Device设置与复位的Runtime实现,以及默认Context生命周期联动 |974| Device C API | `src/runtime/api/api_c_device.cc` | Device设置与复位的Runtime实现,以及默认Context生命周期联动 |
975| API抽象 | `src/runtime/api/api.hpp` | Context相关虚接口定义 |975| API抽象 | `src/runtime/api/api.hpp` | Context相关虚接口定义 |
976-| ApiError | `src/runtime/core/src/api_impl/api_error.cc` | Context API参数校验、空指针校验和资源绑定关系校验 |976+| ApiError | `src/runtime/api/impl/api_error.cc` | Context API参数校验、空指针校验和资源绑定关系校验 |
977| Profiling装饰器 | `src/runtime/core/src/profiler/api_profile_decorator.cc``src/runtime/core/src/profiler/api_profile_log_decorator.cc` | Context API Profiling记录 |977| Profiling装饰器 | `src/runtime/core/src/profiler/api_profile_decorator.cc``src/runtime/core/src/profiler/api_profile_log_decorator.cc` | Context API Profiling记录 |
978-| ApiImpl | `src/runtime/core/src/api_impl/api_impl.cc` | Context创建、销毁、线程绑定实现 |978+| ApiImpl | `src/runtime/api/impl/api_impl.cc` | Context创建、销毁、线程绑定实现 |
979| Runtime | `src/runtime/core/inc/runtime.hpp``src/runtime/core/src/runtime.cc` | 默认Context retain/release、当前Context解析、内部访问上下文 |979| Runtime | `src/runtime/core/inc/runtime.hpp``src/runtime/core/src/runtime.cc` | 默认Context retain/release、当前Context解析、内部访问上下文 |
980| Context头文件 | `src/runtime/core/inc/context/context.hpp` | Context类、状态机、访问模式、校验宏、核心方法声明 |980| Context头文件 | `src/runtime/core/inc/context/context.hpp` | Context类、状态机、访问模式、校验宏、核心方法声明 |
981| Context实现 | `src/runtime/core/src/context/context.cc` | Context生命周期、资源管理、状态迁移、线程绑定引用、同步和错误状态 |981| Context实现 | `src/runtime/core/src/context/context.cc` | Context生命周期、资源管理、状态迁移、线程绑定引用、同步和错误状态 |
@@ -993,4 +993,4 @@ classDiagram
993 993 
994---994---
995 995 
996-_本模块文档基于 `src/runtime/core/src/context/`、`src/runtime/core/src/runtime.cc`、`src/runtime/core/src/api_impl/api_impl.cc`、`src/runtime/core/src/common/inner_thread_local.cpp`及Context相关API源码分析整理。_996+_本模块文档基于 `src/runtime/core/src/context/`、`src/runtime/core/src/runtime.cc`、`src/runtime/api/impl/api_impl.cc`、`src/runtime/core/src/common/inner_thread_local.cpp`及Context相关API源码分析整理。_
@@ -1134,7 +1134,7 @@ Model 模块按照功能划分为核心容器、任务管理、接口层、辅
1134| 适配层 | 适配职责 | 代码位置 | 服务对象 |1134| 适配层 | 适配职责 | 代码位置 | 服务对象 |
1135|----------|----------|----------|----------|1135|----------|----------|----------|----------|
1136| **ACL 接口封装** | ACL → RT 接口映射 | `src/acl/aclrt_impl/model_ri.cpp` | 用户调用 aclmdlRI 接口 |1136| **ACL 接口封装** | ACL → RT 接口映射 | `src/acl/aclrt_impl/model_ri.cpp` | 用户调用 aclmdlRI 接口 |
1137-| **API 装饰器** | API 错误处理装饰 | `src/runtime/core/src/api_impl/api_decorator.cc`| ApiImpl 调用链 |1137+| **API 装饰器** | API 错误处理装饰 | `src/runtime/api/impl/api_decorator.cc`| ApiImpl 调用链 |
1138 1138 
1139 1139 
1140### 5 关键文件路径索引1140### 5 关键文件路径索引
@@ -477,7 +477,7 @@ Kernel Launch API
477| `src/runtime/core/src/plugin_manage/v200/plugin_old_arch.cc` | v200 插件构造和析构入口 |477| `src/runtime/core/src/plugin_manage/v200/plugin_old_arch.cc` | v200 插件构造和析构入口 |
478| `src/runtime/core/src/runtime_v100/runtime_adapt.cc` | v100 平台 Runtime 析构和适配逻辑 |478| `src/runtime/core/src/runtime_v100/runtime_adapt.cc` | v100 平台 Runtime 析构和适配逻辑 |
479| `src/runtime/core/src/runtime_v200/runtime_adapt.cc` | v200 平台 Runtime 析构和适配逻辑 |479| `src/runtime/core/src/runtime_v200/runtime_adapt.cc` | v200 平台 Runtime 析构和适配逻辑 |
480-| `src/runtime/core/src/api_impl/api_impl.cc` | Runtime API 主要内部实现,广泛调用 `Runtime::Instance()` |480+| `src/runtime/api/impl/api_impl.cc` | Runtime API 主要内部实现,广泛调用 `Runtime::Instance()` |
481| `src/runtime/core/src/device/device.cc` | Device 管理逻辑 |481| `src/runtime/core/src/device/device.cc` | Device 管理逻辑 |
482| `src/runtime/core/src/event/event.cc` | Event 管理逻辑 |482| `src/runtime/core/src/event/event.cc` | Event 管理逻辑 |
483| `src/runtime/core/src/launch/` | 各类任务 Launch 实现 |483| `src/runtime/core/src/launch/` | 各类任务 Launch 实现 |
@@ -8,6 +8,7 @@
8# See LICENSE in the root of the software repository for the full text of the License.8# See LICENSE in the root of the software repository for the full text of the License.
9# -----------------------------------------------------------------------------------------------------------9# -----------------------------------------------------------------------------------------------------------
10set(RUNTIME_CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/core)10set(RUNTIME_CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/core)
11+set(RUNTIME_API_DIR ${CMAKE_CURRENT_SOURCE_DIR}/api)
11set(RUNTIME_FEATURE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/feature)12set(RUNTIME_FEATURE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/feature)
12set(RUNTIME_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake)13set(RUNTIME_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
13set(RUNTIME_CORE_ENUM_DESC_SRC_FILES14set(RUNTIME_CORE_ENUM_DESC_SRC_FILES
Rsrc/runtime/core/src/api_impl/api_decorator.ccsrc/runtime/api/impl/api_decorator.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_decorator.hppsrc/runtime/api/impl/api_decorator.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_decorator_tiny_stub.ccsrc/runtime/api/impl/api_decorator_tiny_stub.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error.ccsrc/runtime/api/impl/api_error.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error.hppsrc/runtime/api/impl/api_error.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error_standard_soc.ccsrc/runtime/api/impl/api_error_standard_soc.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error_tiny_stub.ccsrc/runtime/api/impl/api_error_tiny_stub.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error_uvm.ccsrc/runtime/api/impl/api_error_uvm.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl.ccsrc/runtime/api/impl/api_impl.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl.hppsrc/runtime/api/impl/api_impl.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_arch5162.ccsrc/runtime/api/impl/api_impl_arch5162.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_creator.ccsrc/runtime/api/impl/api_impl_creator.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_creator.hppsrc/runtime/api/impl/api_impl_creator.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_david.ccsrc/runtime/api/impl/api_impl_david.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_event.ccsrc/runtime/api/impl/api_impl_event.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_event.hppsrc/runtime/api/impl/api_impl_event.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_mbuf.ccsrc/runtime/api/impl/api_impl_mbuf.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_mbuf.hppsrc/runtime/api/impl/api_impl_mbuf.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_soma.ccsrc/runtime/api/impl/api_impl_soma.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_soma.hppsrc/runtime/api/impl/api_impl_soma.hpp+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_standard_soc.ccsrc/runtime/api/impl/api_impl_standard_soc.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_stub.ccsrc/runtime/api/impl/api_impl_stub.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_tiny.ccsrc/runtime/api/impl/api_impl_tiny.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_uvm.ccsrc/runtime/api/impl/api_impl_uvm.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v100/api_impl_creator_c.ccsrc/runtime/api/impl/v100/api_impl_creator_c.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v100/api_impl_v100.ccsrc/runtime/api/impl/v100/api_impl_v100.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v100/api_impl_v100_xpu.ccsrc/runtime/api/impl/v100/api_impl_v100_xpu.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v200/api_impl_creator_c.ccsrc/runtime/api/impl/v200/api_impl_creator_c.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v200/api_impl_v200.ccsrc/runtime/api/impl/v200/api_impl_v200.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_creator_c.ccsrc/runtime/api/impl/v201/api_impl_creator_c.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_v200_adapt.ccsrc/runtime/api/impl/v201/api_impl_v200_adapt.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_v201.ccsrc/runtime/api/impl/v201/api_impl_v201.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_v201.hppsrc/runtime/api/impl/v201/api_impl_v201.hpp+0-0
文件重命名但无更改。
@@ -72,15 +72,15 @@ set(libruntime_api_src_files
72)72)
73 73 
74set(libruntime_api_impl_src_files74set(libruntime_api_impl_src_files
75- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc75+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
76- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator_tiny_stub.cc76+ ${RUNTIME_API_DIR}/impl/api_decorator_tiny_stub.cc
77- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc77+ ${RUNTIME_API_DIR}/impl/api_error.cc
78- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc78+ ${RUNTIME_API_DIR}/impl/api_impl.cc
79- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc79+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
80- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc80+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
81- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_stub.cc81+ ${RUNTIME_API_DIR}/impl/api_impl_stub.cc
82- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_arch5162.cc82+ ${RUNTIME_API_DIR}/impl/api_impl_arch5162.cc
83- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc83+ ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc
84)84)
85 85 
86set(common_src_files86set(common_src_files
@@ -184,8 +184,8 @@ set(runtime_src_aclgraph_list
184)184)
185 185 
186set(libruntime_src_files_include_for_arch5162186set(libruntime_src_files_include_for_arch5162
187- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_tiny_stub.cc187+ ${RUNTIME_API_DIR}/impl/api_error_tiny_stub.cc
188- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc188+ ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc
189 ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc189 ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc
190 ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc190 ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc
191 ${RUNTIME_CORE_DIR}/src/event/ipc_event_tiny_stub.cc191 ${RUNTIME_CORE_DIR}/src/event/ipc_event_tiny_stub.cc
@@ -331,7 +331,7 @@ set(RUNTIME_INC_DIR_ARCH5162
331 ${RUNTIME_DIR}/src/runtime/core/inc/task331 ${RUNTIME_DIR}/src/runtime/core/inc/task
332 ${RUNTIME_DIR}/src/runtime/core/inc/utils332 ${RUNTIME_DIR}/src/runtime/core/inc/utils
333 ${RUNTIME_DIR}/src/runtime/api333 ${RUNTIME_DIR}/src/runtime/api
334- ${RUNTIME_CORE_DIR}/src/api_impl334+ ${RUNTIME_API_DIR}/impl
335 ${RUNTIME_CORE_DIR}/src/engine335 ${RUNTIME_CORE_DIR}/src/engine
336 ${RUNTIME_CORE_DIR}/src/engine/hwts336 ${RUNTIME_CORE_DIR}/src/engine/hwts
337 ${RUNTIME_CORE_DIR}/src/engine/stars337 ${RUNTIME_CORE_DIR}/src/engine/stars
@@ -322,11 +322,11 @@ set(libruntime_cmodel_callback_files
322 322 
323#------------------------- exclude these files in tiny(ascend031) ---------------------323#------------------------- exclude these files in tiny(ascend031) ---------------------
324set(libruntime_cmodel_src_files_optional324set(libruntime_cmodel_src_files_optional
325- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_standard_soc.cc325+ ${RUNTIME_API_DIR}/impl/api_error_standard_soc.cc
326- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_standard_soc.cc326+ ${RUNTIME_API_DIR}/impl/api_impl_standard_soc.cc
327- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_soma.cc327+ ${RUNTIME_API_DIR}/impl/api_impl_soma.cc
328- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_uvm.cc328+ ${RUNTIME_API_DIR}/impl/api_error_uvm.cc
329- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_uvm.cc329+ ${RUNTIME_API_DIR}/impl/api_impl_uvm.cc
330 ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc330 ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc
331 ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc331 ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc
332 ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc332 ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc
@@ -370,7 +370,7 @@ set(libruntime_cmodel_api_src_files
370 370 
371set(xpu_tprt_api_file371set(xpu_tprt_api_file
372 ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc372 ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc
373- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc373+ ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc
374 ${RUNTIME_CORE_DIR}/src/launch/xpu_aicpu_c_stub.cc374 ${RUNTIME_CORE_DIR}/src/launch/xpu_aicpu_c_stub.cc
375 ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc375 ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc
376)376)
@@ -381,20 +381,20 @@ set(libruntime_cmodel_src_files
381 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp381 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp
382 ${RUNTIME_DIR}/src/runtime/api/api.cc382 ${RUNTIME_DIR}/src/runtime/api/api.cc
383 ${RUNTIME_DIR}/src/runtime/api/api_global_err.cc383 ${RUNTIME_DIR}/src/runtime/api/api_global_err.cc
384- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc384+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
385 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc385 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc
386- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc386+ ${RUNTIME_API_DIR}/impl/api_error.cc
387 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc387 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc
388- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc388+ ${RUNTIME_API_DIR}/impl/api_impl.cc
389 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc389 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc
390 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc390 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc
391- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc391+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
392- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc392+ ${RUNTIME_API_DIR}/impl/api_impl_event.cc
393 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc393 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc
394 394 
395 # for V100395 # for V100
396- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc396+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
397- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc397+ ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc
398 ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc398 ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc
399 ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc399 ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc
400 ${RUNTIME_DIR}/src/runtime/driver/v100/400 ${RUNTIME_DIR}/src/runtime/driver/v100/
@@ -508,22 +508,22 @@ set(libruntime_cmodel_v200_src_files
508 ${RUNTIME_OPTIONAL_ENUM_DESC_SRC_FILES}508 ${RUNTIME_OPTIONAL_ENUM_DESC_SRC_FILES}
509 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp509 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp
510 ${RUNTIME_DIR}/src/runtime/api/api.cc510 ${RUNTIME_DIR}/src/runtime/api/api.cc
511- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc511+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
512 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc512 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc
513- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc513+ ${RUNTIME_API_DIR}/impl/api_error.cc
514 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc514 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc
515- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc515+ ${RUNTIME_API_DIR}/impl/api_impl.cc
516 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc516 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc
517 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc517 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc
518- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc518+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
519- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc519+ ${RUNTIME_API_DIR}/impl/api_impl_event.cc
520- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_david.cc520+ ${RUNTIME_API_DIR}/impl/api_impl_david.cc
521 ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc521 ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc
522 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc522 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc
523 523 
524 # for V200524 # for V200
525- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc525+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
526- ${RUNTIME_CORE_DIR}/src/api_impl/v200/api_impl_creator_c.cc526+ ${RUNTIME_API_DIR}/impl/v200/api_impl_creator_c.cc
527 527 
528 ${RUNTIME_CORE_DIR}/src/context/context.cc528 ${RUNTIME_CORE_DIR}/src/context/context.cc
529 ${RUNTIME_CORE_DIR}/src/device/device.cc529 ${RUNTIME_CORE_DIR}/src/device/device.cc
@@ -650,7 +650,7 @@ set(libruntime_cmodel_v200_src_files
650 ${RUNTIME_CORE_DIR}/src/plugin_manage/v200/plugin_old_arch.cc650 ${RUNTIME_CORE_DIR}/src/plugin_manage/v200/plugin_old_arch.cc
651 ${RUNTIME_CORE_DIR}/src/plugin_manage/runtime_keeper.cc651 ${RUNTIME_CORE_DIR}/src/plugin_manage/runtime_keeper.cc
652 ${common_src_files_cmodel}652 ${common_src_files_cmodel}
653- ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_v200_adapt.cc653+ ${RUNTIME_API_DIR}/impl/v201/api_impl_v200_adapt.cc
654 ${xpu_tprt_api_file}654 ${xpu_tprt_api_file}
655 ${libruntime_cmodel_src_files_optional}655 ${libruntime_cmodel_src_files_optional}
656 ${libruntime_cmodel_api_src_files_cmodel}656 ${libruntime_cmodel_api_src_files_cmodel}
@@ -692,7 +692,7 @@ set(RUNTIME_CMODEL_INC_DIR_COMMON
692 ${RUNTIME_DIR}/src/runtime/core/inc/task692 ${RUNTIME_DIR}/src/runtime/core/inc/task
693 ${RUNTIME_DIR}/src/runtime/core/inc/utils693 ${RUNTIME_DIR}/src/runtime/core/inc/utils
694 ${RUNTIME_DIR}/src/runtime/api694 ${RUNTIME_DIR}/src/runtime/api
695- ${RUNTIME_CORE_DIR}/src/api_impl695+ ${RUNTIME_API_DIR}/impl
696 ${RUNTIME_CORE_DIR}/src/engine696 ${RUNTIME_CORE_DIR}/src/engine
697 ${RUNTIME_CORE_DIR}/src/engine/hwts697 ${RUNTIME_CORE_DIR}/src/engine/hwts
698 ${RUNTIME_CORE_DIR}/src/engine/stars698 ${RUNTIME_CORE_DIR}/src/engine/stars
@@ -41,7 +41,7 @@ set(RUNTIME_INC_DIR_COMMON_PLATFORM
41 ${RUNTIME_DIR}/src/runtime/core/inc/task41 ${RUNTIME_DIR}/src/runtime/core/inc/task
42 ${RUNTIME_DIR}/src/runtime/core/inc/utils42 ${RUNTIME_DIR}/src/runtime/core/inc/utils
43 ${RUNTIME_DIR}/src/runtime/api43 ${RUNTIME_DIR}/src/runtime/api
44- ${RUNTIME_CORE_DIR}/src/api_impl44+ ${RUNTIME_API_DIR}/impl
45 ${RUNTIME_CORE_DIR}/src/engine45 ${RUNTIME_CORE_DIR}/src/engine
46 ${RUNTIME_CORE_DIR}/src/engine/hwts46 ${RUNTIME_CORE_DIR}/src/engine/hwts
47 ${RUNTIME_CORE_DIR}/src/engine/stars47 ${RUNTIME_CORE_DIR}/src/engine/stars
@@ -169,11 +169,11 @@ set(libruntime_callback_files
169)169)
170 170 
171set(libruntime_src_files_optional171set(libruntime_src_files_optional
172- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_standard_soc.cc172+ ${RUNTIME_API_DIR}/impl/api_error_standard_soc.cc
173- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_standard_soc.cc173+ ${RUNTIME_API_DIR}/impl/api_impl_standard_soc.cc
174- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_soma.cc174+ ${RUNTIME_API_DIR}/impl/api_impl_soma.cc
175- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_uvm.cc175+ ${RUNTIME_API_DIR}/impl/api_error_uvm.cc
176- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_uvm.cc176+ ${RUNTIME_API_DIR}/impl/api_impl_uvm.cc
177 ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc177 ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc
178 ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc178 ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc
179 ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc179 ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc
@@ -260,7 +260,7 @@ set_source_files_properties(${libruntime_api_aclrt_impl_src_files}
260#------------------------- runtime v100 -------------------------260#------------------------- runtime v100 -------------------------
261set(xpu_tprt_api_file261set(xpu_tprt_api_file
262 ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc262 ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc
263- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100_xpu.cc263+ ${RUNTIME_API_DIR}/impl/v100/api_impl_v100_xpu.cc
264 ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc264 ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc
265)265)
266 266 
@@ -290,20 +290,20 @@ set(libruntime_v100_src_files
290 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}290 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}
291 ${RUNTIME_OPTIONAL_ENUM_DESC_SRC_FILES}291 ${RUNTIME_OPTIONAL_ENUM_DESC_SRC_FILES}
292 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp292 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp
293- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc293+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
294 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc294 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc
295- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc295+ ${RUNTIME_API_DIR}/impl/api_impl.cc
296 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc296 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc
297 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc297 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc
298- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc298+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
299- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc299+ ${RUNTIME_API_DIR}/impl/api_impl_event.cc
300- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc300+ ${RUNTIME_API_DIR}/impl/api_error.cc
301 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc301 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc
302 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc302 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc
303 303 
304 # for V100304 # for V100
305- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc305+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
306- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc306+ ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc
307 ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc307 ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc
308 ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc308 ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc
309 ${RUNTIME_CORE_DIR}/src/device/device.cc309 ${RUNTIME_CORE_DIR}/src/device/device.cc
@@ -455,7 +455,7 @@ set(RUNTIME_INC_DIR_OPEN
455 ${RUNTIME_DIR}/src/runtime/core/inc/task455 ${RUNTIME_DIR}/src/runtime/core/inc/task
456 ${RUNTIME_DIR}/src/runtime/core/inc/utils456 ${RUNTIME_DIR}/src/runtime/core/inc/utils
457 ${RUNTIME_DIR}/src/runtime/api457 ${RUNTIME_DIR}/src/runtime/api
458- ${RUNTIME_CORE_DIR}/src/api_impl458+ ${RUNTIME_API_DIR}/impl
459 ${RUNTIME_CORE_DIR}/src/engine459 ${RUNTIME_CORE_DIR}/src/engine
460 ${RUNTIME_CORE_DIR}/src/engine/hwts460 ${RUNTIME_CORE_DIR}/src/engine/hwts
461 ${RUNTIME_CORE_DIR}/src/engine/stars461 ${RUNTIME_CORE_DIR}/src/engine/stars
@@ -159,10 +159,10 @@ set(libruntime_callback_files
159)159)
160 160 
161set(libruntime_src_files_include_for_tiny161set(libruntime_src_files_include_for_tiny
162- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_tiny_stub.cc162+ ${RUNTIME_API_DIR}/impl/api_error_tiny_stub.cc
163- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_stub.cc163+ ${RUNTIME_API_DIR}/impl/api_impl_stub.cc
164- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_tiny.cc164+ ${RUNTIME_API_DIR}/impl/api_impl_tiny.cc
165- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc165+ ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc
166 ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc166 ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc
167 ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_tiny_stub.cc167 ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_tiny_stub.cc
168 ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc168 ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc
@@ -189,7 +189,7 @@ set(libruntime_src_files_include_for_tiny
189 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/context_tiny_stub_aclgraph.cc189 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/context_tiny_stub_aclgraph.cc
190 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/event_capture_tiny_stub.cc190 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/event_capture_tiny_stub.cc
191 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/capture_adapt_tiny_stub.cc191 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/capture_adapt_tiny_stub.cc
192- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator_tiny_stub.cc192+ ${RUNTIME_API_DIR}/impl/api_decorator_tiny_stub.cc
193 ${RUNTIME_FEATURE_DIR}/model/tiny/model_aclgraph_tiny_stub.cc193 ${RUNTIME_FEATURE_DIR}/model/tiny/model_aclgraph_tiny_stub.cc
194 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/stream_capture_tiny_stub.cc194 ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/stream_capture_tiny_stub.cc
195 ${RUNTIME_FEATURE_DIR}/jetty/jetty_stub.cc195 ${RUNTIME_FEATURE_DIR}/jetty/jetty_stub.cc
@@ -214,10 +214,10 @@ set(libruntime_common_src_files
214 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}214 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}
215 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp215 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp
216 ${RUNTIME_DIR}/src/runtime/api/api.cc216 ${RUNTIME_DIR}/src/runtime/api/api.cc
217- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc217+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
218- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc218+ ${RUNTIME_API_DIR}/impl/api_error.cc
219- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc219+ ${RUNTIME_API_DIR}/impl/api_impl.cc
220- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc220+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
221 ${RUNTIME_CORE_DIR}/src/launch/cond_stars.cc221 ${RUNTIME_CORE_DIR}/src/launch/cond_stars.cc
222 ${RUNTIME_CORE_DIR}/src/launch/label_common.cc222 ${RUNTIME_CORE_DIR}/src/launch/label_common.cc
223 ${RUNTIME_CORE_DIR}/src/launch/label_stars.cc223 ${RUNTIME_CORE_DIR}/src/launch/label_stars.cc
@@ -226,8 +226,8 @@ set(libruntime_common_src_files
226 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc226 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc
227 227 
228 # for V100228 # for V100
229- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc229+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
230- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc230+ ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc
231 ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc231 ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc
232 ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc232 ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc
233 233 
@@ -359,16 +359,16 @@ set_source_files_properties(${libruntime_aclrt_impl_src_files}
359set(libruntime_v100_src_files359set(libruntime_v100_src_files
360 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}360 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}
361 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp361 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp
362- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc362+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
363- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc363+ ${RUNTIME_API_DIR}/impl/api_impl.cc
364- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc364+ ${RUNTIME_API_DIR}/impl/api_error.cc
365- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc365+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
366- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc366+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
367 ${RUNTIME_CORE_DIR}/src/dfx/kernel_dfx_info.cc367 ${RUNTIME_CORE_DIR}/src/dfx/kernel_dfx_info.cc
368 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc368 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc
369 369 
370 # for V100370 # for V100
371- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc371+ ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc
372 372 
373 ${RUNTIME_CORE_DIR}/src/device/device.cc373 ${RUNTIME_CORE_DIR}/src/device/device.cc
374 ${RUNTIME_CORE_DIR}/src/device/raw_device.cc374 ${RUNTIME_CORE_DIR}/src/device/raw_device.cc
@@ -500,7 +500,7 @@ set(RUNTIME_INC_DIR_TINY
500 ${RUNTIME_DIR}/src/runtime/core/inc/task500 ${RUNTIME_DIR}/src/runtime/core/inc/task
501 ${RUNTIME_DIR}/src/runtime/core/inc/utils501 ${RUNTIME_DIR}/src/runtime/core/inc/utils
502 ${RUNTIME_DIR}/src/runtime/api502 ${RUNTIME_DIR}/src/runtime/api
503- ${RUNTIME_CORE_DIR}/src/api_impl503+ ${RUNTIME_API_DIR}/impl
504 ${RUNTIME_CORE_DIR}/src/engine504 ${RUNTIME_CORE_DIR}/src/engine
505 ${RUNTIME_CORE_DIR}/src/engine/hwts505 ${RUNTIME_CORE_DIR}/src/engine/hwts
506 ${RUNTIME_CORE_DIR}/src/engine/stars506 ${RUNTIME_CORE_DIR}/src/engine/stars
@@ -12,7 +12,7 @@ include(${RUNTIME_DIR}/pkg_inc/runtime/runtime/runtime_headers.cmake)
12 12 
13set(xpu_tprt_api_file13set(xpu_tprt_api_file
14 ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc14 ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc
15- ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc15+ ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc
16 ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc16 ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc
17)17)
18 18 
@@ -34,7 +34,7 @@ set(xpu_tprt_src_file
34 ${RUNTIME_FEATURE_DIR}/xpu/program_plat.cc34 ${RUNTIME_FEATURE_DIR}/xpu/program_plat.cc
35 ${RUNTIME_FEATURE_DIR}/xpu/api_impl_xpu_v200.cc35 ${RUNTIME_FEATURE_DIR}/xpu/api_impl_xpu_v200.cc
36 ${RUNTIME_CORE_DIR}/src/kernel/json_parse.cc36 ${RUNTIME_CORE_DIR}/src/kernel/json_parse.cc
37- ${RUNTIME_CORE_DIR}/src/api_impl/v200/api_impl_v200.cc37+ ${RUNTIME_API_DIR}/impl/v200/api_impl_v200.cc
38)38)
39 39 
40set(david_series_common_task_src_file40set(david_series_common_task_src_file
@@ -208,11 +208,11 @@ set(libruntime_v200_callback_files
208 208 
209#------------------------- exclude these files in tiny(ascend031) ---------------------209#------------------------- exclude these files in tiny(ascend031) ---------------------
210set(libruntime_v200_src_files_exclude_for_tiny210set(libruntime_v200_src_files_exclude_for_tiny
211- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_standard_soc.cc211+ ${RUNTIME_API_DIR}/impl/api_error_standard_soc.cc
212- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_standard_soc.cc212+ ${RUNTIME_API_DIR}/impl/api_impl_standard_soc.cc
213- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_soma.cc213+ ${RUNTIME_API_DIR}/impl/api_impl_soma.cc
214- ${RUNTIME_CORE_DIR}/src/api_impl/api_error_uvm.cc214+ ${RUNTIME_API_DIR}/impl/api_error_uvm.cc
215- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_uvm.cc215+ ${RUNTIME_API_DIR}/impl/api_impl_uvm.cc
216 ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc216 ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc
217 ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc217 ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc
218 ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc218 ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc
@@ -247,17 +247,17 @@ set(libruntime_v200_v201_common_src_files
247 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}247 ${RUNTIME_CORE_ENUM_DESC_SRC_FILES}
248 ${RUNTIME_OPTIONAL_ENUM_DESC_SRC_FILES}248 ${RUNTIME_OPTIONAL_ENUM_DESC_SRC_FILES}
249 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp249 ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp
250- ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc250+ ${RUNTIME_API_DIR}/impl/api_decorator.cc
251 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc251 ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc
252- ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc252+ ${RUNTIME_API_DIR}/impl/api_error.cc
253 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc253 ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc
254- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_david.cc254+ ${RUNTIME_API_DIR}/impl/api_impl_david.cc
255 ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc255 ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc
256- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc256+ ${RUNTIME_API_DIR}/impl/api_impl.cc
257 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc257 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc
258 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc258 ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc
259- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc259+ ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc
260- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc260+ ${RUNTIME_API_DIR}/impl/api_impl_event.cc
261 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc261 ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc
262 ${RUNTIME_CORE_DIR}/src/context/context.cc262 ${RUNTIME_CORE_DIR}/src/context/context.cc
263 ${RUNTIME_CORE_DIR}/src/device/device.cc263 ${RUNTIME_CORE_DIR}/src/device/device.cc
@@ -376,8 +376,8 @@ set(libruntime_v200_src_files
376 ${libruntime_v200_v201_common_src_files}376 ${libruntime_v200_v201_common_src_files}
377 377 
378 # for v200378 # for v200
379- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc379+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
380- ${RUNTIME_CORE_DIR}/src/api_impl/v200/api_impl_creator_c.cc380+ ${RUNTIME_API_DIR}/impl/v200/api_impl_creator_c.cc
381 ${RUNTIME_DIR}/src/runtime/driver/v200/npu_driver.cc381 ${RUNTIME_DIR}/src/runtime/driver/v200/npu_driver.cc
382 ${RUNTIME_CORE_DIR}/src/runtime_v200/runtime_adapt.cc382 ${RUNTIME_CORE_DIR}/src/runtime_v200/runtime_adapt.cc
383 ${RUNTIME_CORE_DIR}/src/device/dev_simt_stack_checker.cc383 ${RUNTIME_CORE_DIR}/src/device/dev_simt_stack_checker.cc
@@ -403,10 +403,10 @@ set(libruntime_v201_src_files
403 403 
404 # for v201404 # for v201
405 ${RUNTIME_CORE_DIR}/src/runtime_v100/runtime_adapt.cc405 ${RUNTIME_CORE_DIR}/src/runtime_v100/runtime_adapt.cc
406- ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc406+ ${RUNTIME_API_DIR}/impl/api_impl_creator.cc
407- ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_creator_c.cc407+ ${RUNTIME_API_DIR}/impl/v201/api_impl_creator_c.cc
408- ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_v201.cc408+ ${RUNTIME_API_DIR}/impl/v201/api_impl_v201.cc
409- ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_v200_adapt.cc409+ ${RUNTIME_API_DIR}/impl/v201/api_impl_v200_adapt.cc
410 ${RUNTIME_CORE_DIR}/src/common/ioctl/v201/ioctl_utils.cc410 ${RUNTIME_CORE_DIR}/src/common/ioctl/v201/ioctl_utils.cc
411 ${RUNTIME_CORE_DIR}/src/device/v201/dev_simt_stack_checker.cc411 ${RUNTIME_CORE_DIR}/src/device/v201/dev_simt_stack_checker.cc
412 ${RUNTIME_DIR}/src/runtime/driver/v201/npu_driver.cc412 ${RUNTIME_DIR}/src/runtime/driver/v201/npu_driver.cc
@@ -473,7 +473,7 @@ set(RUNTIME_INC_DIR_COMMON_V200
473 ${RUNTIME_DIR}/src/runtime/core/inc/task473 ${RUNTIME_DIR}/src/runtime/core/inc/task
474 ${RUNTIME_DIR}/src/runtime/core/inc/utils474 ${RUNTIME_DIR}/src/runtime/core/inc/utils
475 ${RUNTIME_DIR}/src/runtime/api475 ${RUNTIME_DIR}/src/runtime/api
476- ${RUNTIME_CORE_DIR}/src/api_impl476+ ${RUNTIME_API_DIR}/impl
477 ${RUNTIME_CORE_DIR}/src/engine477 ${RUNTIME_CORE_DIR}/src/engine
478 ${RUNTIME_CORE_DIR}/src/engine/hwts478 ${RUNTIME_CORE_DIR}/src/engine/hwts
479 ${RUNTIME_CORE_DIR}/src/engine/stars479 ${RUNTIME_CORE_DIR}/src/engine/stars
@@ -368,16 +368,16 @@ set(runtimeut_src_tiny_exclude_list
368 ${TOP_DIR}/src/runtime/api/api_c_snapshot.cc368 ${TOP_DIR}/src/runtime/api/api_c_snapshot.cc
369 ${TOP_DIR}/src/runtime/api/api_c_uvm.cc369 ${TOP_DIR}/src/runtime/api/api_c_uvm.cc
370 ${TOP_DIR}/src/runtime/api/api_c_kernel.cc370 ${TOP_DIR}/src/runtime/api/api_c_kernel.cc
371- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc371+ ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc
372 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc372 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc
373- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc373+ ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc
374- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc374+ ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc
375- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc375+ ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc
376- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_david.cc376+ ${TOP_DIR}/src/runtime/api/impl/api_impl_david.cc
377 ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc377 ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc
378 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc378 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc
379- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc379+ ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc
380- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc380+ ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc
381 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc381 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc
382 ${TOP_DIR}/src/runtime/feature/aclgraph/api_decorator_aclgraph.cc382 ${TOP_DIR}/src/runtime/feature/aclgraph/api_decorator_aclgraph.cc
383 ${TOP_DIR}/src/runtime/feature/aclgraph/api_error_aclgraph.cc383 ${TOP_DIR}/src/runtime/feature/aclgraph/api_error_aclgraph.cc
@@ -447,12 +447,12 @@ set(runtimeut_src_tiny_exclude_list
447set(runtimeut_src_tiny_include_list447set(runtimeut_src_tiny_include_list
448 ${TOP_DIR}/src/runtime/api/api_c_stub.cc448 ${TOP_DIR}/src/runtime/api/api_c_stub.cc
449 ${TOP_DIR}/src/runtime/api/api_c_tiny.cc449 ${TOP_DIR}/src/runtime/api/api_c_tiny.cc
450- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_tiny_stub.cc450+ ${TOP_DIR}/src/runtime/api/impl/api_error_tiny_stub.cc
451- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_stub.cc451+ ${TOP_DIR}/src/runtime/api/impl/api_impl_stub.cc
452- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_tiny.cc452+ ${TOP_DIR}/src/runtime/api/impl/api_impl_tiny.cc
453- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator_tiny_stub.cc453+ ${TOP_DIR}/src/runtime/api/impl/api_decorator_tiny_stub.cc
454 ${TOP_DIR}/src/runtime/core/src/dfx/fast_recover.cc454 ${TOP_DIR}/src/runtime/core/src/dfx/fast_recover.cc
455- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc455+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc
456 ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc456 ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc
457 ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/context_tiny_stub_aclgraph.cc457 ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/context_tiny_stub_aclgraph.cc
458 ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/capture_adapt_tiny_stub.cc458 ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/capture_adapt_tiny_stub.cc
@@ -552,20 +552,20 @@ set(runtimeut_src_list
552 ${runtimeut_src_callback_list}552 ${runtimeut_src_callback_list}
553 ${TOP_DIR}/src/runtime/api/api.cc553 ${TOP_DIR}/src/runtime/api/api.cc
554 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc554 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc
555- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc555+ ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc
556- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc556+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc
557- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc557+ ${TOP_DIR}/src/runtime/api/impl/api_impl.cc
558- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc558+ ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc
559- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc559+ ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc
560- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc560+ ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc
561- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc561+ ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc
562 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc562 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc
563- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc563+ ${TOP_DIR}/src/runtime/api/impl/api_error.cc
564- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc564+ ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc
565- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc565+ ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc
566- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc566+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc
567- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc567+ ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc
568- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc568+ ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc
569 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc569 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc
570 ${TOP_DIR}/src/runtime/core/src/context/context.cc570 ${TOP_DIR}/src/runtime/core/src/context/context.cc
571 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc571 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc
@@ -686,24 +686,24 @@ set(runtimeut_david_src_list
686 ${runtime_xpu_src}686 ${runtime_xpu_src}
687 ${TOP_DIR}/src/runtime/api/api.cc687 ${TOP_DIR}/src/runtime/api/api.cc
688 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc688 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc
689- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc689+ ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc
690- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc690+ ${TOP_DIR}/src/runtime/api/impl/api_impl.cc
691- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc691+ ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc
692- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc692+ ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc
693- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_david.cc693+ ${TOP_DIR}/src/runtime/api/impl/api_impl_david.cc
694 ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc694 ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc
695- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc695+ ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc
696- ${TOP_DIR}/src/runtime/core/src/api_impl/v200/api_impl_creator_c.cc696+ ${TOP_DIR}/src/runtime/api/impl/v200/api_impl_creator_c.cc
697- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc697+ ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc
698- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc698+ ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc
699 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc699 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc
700- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc700+ ${TOP_DIR}/src/runtime/api/impl/api_error.cc
701- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc701+ ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc
702- ${TOP_DIR}/src/runtime/core/src/api_impl/v200/api_impl_v200.cc702+ ${TOP_DIR}/src/runtime/api/impl/v200/api_impl_v200.cc
703 ${TOP_DIR}/src/runtime/feature/xpu/api_impl_xpu_v200.cc703 ${TOP_DIR}/src/runtime/feature/xpu/api_impl_xpu_v200.cc
704- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc704+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc
705- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc705+ ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc
706- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc706+ ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc
707 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc707 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc
708 ${TOP_DIR}/src/runtime/core/src/context/context.cc708 ${TOP_DIR}/src/runtime/core/src/context/context.cc
709 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc709 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc
@@ -1392,7 +1392,7 @@ set(RUNTIME_TEST_INC_DIR_COMMON
1392 ${TOP_DIR}/src/runtime/core/inc/engine/hwts1392 ${TOP_DIR}/src/runtime/core/inc/engine/hwts
1393 ${TOP_DIR}/src/runtime/core/inc/dqs1393 ${TOP_DIR}/src/runtime/core/inc/dqs
1394 ${TOP_DIR}/src/runtime/api1394 ${TOP_DIR}/src/runtime/api
1395- ${TOP_DIR}/src/runtime/core/src/api_impl1395+ ${TOP_DIR}/src/runtime/api/impl
1396 ${TOP_DIR}/src/runtime/core/src/engine1396 ${TOP_DIR}/src/runtime/core/src/engine
1397 ${TOP_DIR}/src/runtime/core/src/engine/hwts1397 ${TOP_DIR}/src/runtime/core/src/engine/hwts
1398 ${TOP_DIR}/src/runtime/core/src/engine/stars1398 ${TOP_DIR}/src/runtime/core/src/engine/stars
@@ -1549,7 +1549,7 @@ set(runtimeut_v201_src_task_list
1549 ${TOP_DIR}/src/runtime/feature/dqs/dqs_task.cc1549 ${TOP_DIR}/src/runtime/feature/dqs/dqs_task.cc
1550 ${TOP_DIR}/src/runtime/feature/dqs/dqs_c.cc1550 ${TOP_DIR}/src/runtime/feature/dqs/dqs_c.cc
1551 ${TOP_DIR}/src/runtime/feature/dqs/model_serial_sched_task.cc1551 ${TOP_DIR}/src/runtime/feature/dqs/model_serial_sched_task.cc
1552- ${TOP_DIR}/src/runtime/core/src/api_impl/v201/api_impl_v200_adapt.cc1552+ ${TOP_DIR}/src/runtime/api/impl/v201/api_impl_v200_adapt.cc
1553 ${TOP_DIR}/src/runtime/core/src/task/task_info/event/notify_task_v201.cc1553 ${TOP_DIR}/src/runtime/core/src/task/task_info/event/notify_task_v201.cc
1554 ${TOP_DIR}/src/runtime/core/src/task/v201/memory_corruption_checker.cc1554 ${TOP_DIR}/src/runtime/core/src/task/v201/memory_corruption_checker.cc
1555 ${TOP_DIR}/src/runtime/core/src/task/task_info/cmo/cmo_task_v201.cc1555 ${TOP_DIR}/src/runtime/core/src/task/task_info/cmo/cmo_task_v201.cc
@@ -1573,24 +1573,24 @@ set(runtimeut_v201_src_list
1573 ${runtime_xpu_src}1573 ${runtime_xpu_src}
1574 ${TOP_DIR}/src/runtime/api/api.cc1574 ${TOP_DIR}/src/runtime/api/api.cc
1575 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc1575 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc
1576- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc1576+ ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc
1577- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc1577+ ${TOP_DIR}/src/runtime/api/impl/api_impl.cc
1578- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc1578+ ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc
1579- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc1579+ ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc
1580- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_david.cc1580+ ${TOP_DIR}/src/runtime/api/impl/api_impl_david.cc
1581 ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc1581 ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc
1582- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc1582+ ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc
1583- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc1583+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc
1584- ${TOP_DIR}/src/runtime/core/src/api_impl/v201/api_impl_v201.cc1584+ ${TOP_DIR}/src/runtime/api/impl/v201/api_impl_v201.cc
1585- ${TOP_DIR}/src/runtime/core/src/api_impl/v201/api_impl_v200_adapt.cc1585+ ${TOP_DIR}/src/runtime/api/impl/v201/api_impl_v200_adapt.cc
1586- ${TOP_DIR}/src/runtime/core/src/api_impl/v201/api_impl_creator_c.cc1586+ ${TOP_DIR}/src/runtime/api/impl/v201/api_impl_creator_c.cc
1587- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc1587+ ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc
1588- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc1588+ ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc
1589 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc1589 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc
1590- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc1590+ ${TOP_DIR}/src/runtime/api/impl/api_error.cc
1591- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc1591+ ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc
1592- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc1592+ ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc
1593- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc1593+ ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc
1594 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc1594 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc
1595 ${TOP_DIR}/src/runtime/core/src/context/context.cc1595 ${TOP_DIR}/src/runtime/core/src/context/context.cc
1596 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc1596 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc
@@ -1750,7 +1750,7 @@ set(RUNTIME_V201_INC_DIR
1750 ${TOP_DIR}/src/runtime/core/inc/sqe/v2011750 ${TOP_DIR}/src/runtime/core/inc/sqe/v201
1751 ${TOP_DIR}/src/runtime/core/inc/cond_isa/v2011751 ${TOP_DIR}/src/runtime/core/inc/cond_isa/v201
1752 ${TOP_DIR}/src/runtime/feature/dqs1752 ${TOP_DIR}/src/runtime/feature/dqs
1753- ${TOP_DIR}/src/runtime/core/src/api_impl/v2011753+ ${TOP_DIR}/src/runtime/api/impl/v201
1754 ${TOP_DIR}/src/runtime/feature/dqs1754 ${TOP_DIR}/src/runtime/feature/dqs
1755 ${TOP_DIR}/src/runtime/core/src/common/ioctl/v2011755 ${TOP_DIR}/src/runtime/core/src/common/ioctl/v201
1756)1756)
@@ -250,16 +250,16 @@ set(runtimeut_910b_src_list
250 ${runtimeut_src_ttlv_list}250 ${runtimeut_src_ttlv_list}
251 ${runtimeut_src_callback_list}251 ${runtimeut_src_callback_list}
252 ${TOP_DIR}/src/runtime/api/api.cc252 ${TOP_DIR}/src/runtime/api/api.cc
253- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc253+ ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc
254- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc254+ ${TOP_DIR}/src/runtime/api/impl/api_impl.cc
255- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc255+ ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc
256- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc256+ ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc
257- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc257+ ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc
258- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc258+ ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc
259- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc259+ ${TOP_DIR}/src/runtime/api/impl/api_error.cc
260- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc260+ ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc
261- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc261+ ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc
262- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc262+ ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc
263 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc263 ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc
264 ${TOP_DIR}/src/runtime/core/src/context/context.cc264 ${TOP_DIR}/src/runtime/core/src/context/context.cc
265 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc265 ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc
@@ -354,15 +354,15 @@ set(runtimeut_910b_src_list
354 ${TOP_DIR}/src/runtime/core/src/engine/hwts/direct_hwts_engine.cc354 ${TOP_DIR}/src/runtime/core/src/engine/hwts/direct_hwts_engine.cc
355 ${TOP_DIR}/src/runtime/core/src/engine/engine_factory.cc355 ${TOP_DIR}/src/runtime/core/src/engine/engine_factory.cc
356 ${TOP_DIR}/src/runtime/core/src/engine/hwts/shm_cq.cc356 ${TOP_DIR}/src/runtime/core/src/engine/hwts/shm_cq.cc
357- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc357+ ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc
358- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc358+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc
359 ${runtimeut_src_common_list}359 ${runtimeut_src_common_list}
360 ${runtimeut_platform_list}360 ${runtimeut_platform_list}
361 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc361 ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc
362- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100_xpu.cc362+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100_xpu.cc
363 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc363 ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc
364- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc364+ ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc
365- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc365+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc
366 ${TOP_DIR}/src/runtime/core/src/kernel/json_parse.cc366 ${TOP_DIR}/src/runtime/core/src/kernel/json_parse.cc
367 ${TOP_DIR}/src/runtime/core/src/kernel/program_common.cc367 ${TOP_DIR}/src/runtime/core/src/kernel/program_common.cc
368 ${TOP_DIR}/src/runtime/core/src/kernel/kernel_utils.cc368 ${TOP_DIR}/src/runtime/core/src/kernel/kernel_utils.cc
@@ -485,7 +485,7 @@ set(RUNTIME_TEST_INC_DIR_COMMON
485 ${TOP_DIR}/src/runtime/core/inc/engine/hwts485 ${TOP_DIR}/src/runtime/core/inc/engine/hwts
486 ${TOP_DIR}/src/runtime/core/inc/dqs486 ${TOP_DIR}/src/runtime/core/inc/dqs
487 ${TOP_DIR}/src/runtime/api487 ${TOP_DIR}/src/runtime/api
488- ${TOP_DIR}/src/runtime/core/src/api_impl488+ ${TOP_DIR}/src/runtime/api/impl
489 ${TOP_DIR}/src/runtime/core/src/engine489 ${TOP_DIR}/src/runtime/core/src/engine
490 ${TOP_DIR}/src/runtime/core/src/engine/hwts490 ${TOP_DIR}/src/runtime/core/src/engine/hwts
491 ${TOP_DIR}/src/runtime/core/src/engine/stars491 ${TOP_DIR}/src/runtime/core/src/engine/stars
@@ -52,9 +52,9 @@ set(runtimeut_src_task_list
52)52)
53 53 
54set(libruntime_src_files_include_for_arch516254set(libruntime_src_files_include_for_arch5162
55- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_tiny_stub.cc55+ ${TOP_DIR}/src/runtime/api/impl/api_error_tiny_stub.cc
56- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_stub.cc56+ ${TOP_DIR}/src/runtime/api/impl/api_impl_stub.cc
57- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc57+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc
58 ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc58 ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc
59 ${TOP_DIR}/src/runtime/core/src/dfx/printf_tiny_stub.cc59 ${TOP_DIR}/src/runtime/core/src/dfx/printf_tiny_stub.cc
60 ${TOP_DIR}/src/runtime/core/src/event/ipc_event_tiny_stub.cc60 ${TOP_DIR}/src/runtime/core/src/event/ipc_event_tiny_stub.cc
@@ -93,15 +93,15 @@ set(runtimeut_src_api_list
93)93)
94 94 
95set(runtimeut_src_api_impl_list95set(runtimeut_src_api_impl_list
96- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc96+ ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc
97- ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator_tiny_stub.cc97+ ${TOP_DIR}/src/runtime/api/impl/api_decorator_tiny_stub.cc
98- ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc98+ ${TOP_DIR}/src/runtime/api/impl/api_error.cc
99- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc99+ ${TOP_DIR}/src/runtime/api/impl/api_impl.cc
100- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc100+ ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc
101- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc101+ ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc
102- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_stub.cc102+ ${TOP_DIR}/src/runtime/api/impl/api_impl_stub.cc
103- ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_arch5162.cc103+ ${TOP_DIR}/src/runtime/api/impl/api_impl_arch5162.cc
104- ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc104+ ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc
105)105)
106 106 
107set(runtimeut_src_common_list107set(runtimeut_src_common_list
@@ -424,7 +424,7 @@ set(RUNTIME_TEST_INC_DIR_COMMON
424 ${TOP_DIR}/src/runtime/core/inc/engine/hwts424 ${TOP_DIR}/src/runtime/core/inc/engine/hwts
425 ${TOP_DIR}/src/runtime/core/inc/dqs425 ${TOP_DIR}/src/runtime/core/inc/dqs
426 ${TOP_DIR}/src/runtime/api426 ${TOP_DIR}/src/runtime/api
427- ${TOP_DIR}/src/runtime/core/src/api_impl427+ ${TOP_DIR}/src/runtime/api/impl
428 ${TOP_DIR}/src/runtime/core/src/engine428 ${TOP_DIR}/src/runtime/core/src/engine
429 ${TOP_DIR}/src/runtime/core/src/engine/hwts429 ${TOP_DIR}/src/runtime/core/src/engine/hwts
430 ${TOP_DIR}/src/runtime/core/src/engine/stars430 ${TOP_DIR}/src/runtime/core/src/engine/stars