已合并
【PR】: mv core/api_impl->api/impl #3999
duanpengliang创建于 28 天前
【PR】: mv core/api_impl->api/impl #3999
已合并
共 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) -> 重构后必须保持继承,不新增 override | 117 | - 若重构前 David 继承基类实现(未 override) -> 重构后必须保持继承,不新增 override |
| @@ -209,7 +209,7 @@ timeout 120s bash tests/build_ut.sh --ut runtime --target runtime_ut -- --gtest_ | |||
| 209 | rg "ForStars|ForDavid" src/runtime/core/src src/runtime/core/inc_c | 209 | rg "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_impl | 212 | +rg "curCtx->(<接口名1>|<接口名2>)" src/runtime/api/impl |
| 213 | 213 | ||
| 214 | # 检查 Context 中是否残留目标接口声明/实现 | 214 | # 检查 Context 中是否残留目标接口声明/实现 |
| 215 | rg -n "Context::(<接口名1>|<接口名2>)" src/runtime/core/inc/context/context.hpp src/runtime/core/src/context/context.cc | 215 | rg -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) | |||
| 30 | add_custom_command( | 30 | add_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 | ||
| 35 | target_sources(ascend_hal_stub PRIVATE | 36 | target_sources(ascend_hal_stub PRIVATE |
| @@ -91,6 +92,7 @@ set(LOCAL_DSMI_C_FILE_PATH ${CMAKE_CURRENT_BINARY_DIR}/dsmi_common_interface.c) | |||
| 91 | add_custom_command( | 92 | add_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 | ||
| 96 | add_library(drvdsmi_host_stub SHARED) | 98 | add_library(drvdsmi_host_stub SHARED) |
| @@ -21,8 +21,8 @@ import sys | |||
| 21 | import argparse | 21 | import argparse |
| 22 | import re | 22 | import 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*;') |
| 26 | INGORE_LIST = ["#ifndef __ASCEND_HAL_H__", "#ifndef ASCEND_EXTERNAL_H", | 26 | INGORE_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 i | 51 | + 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] + i | 56 | 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 = 1 | 58 | 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 = 0 | 60 | change_line = 0 |
| 60 | left = 0 | 61 | left = 0 |
| 61 | right = 0 | 62 | right = 0 |
| @@ -89,7 +90,7 @@ def collect_functions(file_path): | |||
| 89 | signatures.append(i) | 90 | signatures.append(i) |
| 90 | endif_num += 1 | 91 | 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 signatures | 96 | 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 Launch | 72 | │ ├── 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_UP | 218 | - **后处理阶段**:触发 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 回调,将进程状态切换为 LOCKED | 244 | - **后处理阶段**:触发 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 | ```cpp | 241 | ```cpp |
| 242 | -// 文件位置:src/runtime/core/src/api_impl/api_impl.cc | 242 | +// 文件位置:src/runtime/api/impl/api_impl.cc |
| 243 | rtError_t ApiImpl::SetDevice(const int32_t devId) | 243 | rtError_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 | ```cpp | 299 | ```cpp |
| 300 | -// 文件位置:src/runtime/core/src/api_impl/api_impl.cc | 300 | +// 文件位置:src/runtime/api/impl/api_impl.cc |
| 301 | rtError_t ApiImpl::ContextCreate(Context ** const inCtx, const int32_t devId) | 301 | rtError_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 | # ----------------------------------------------------------------------------------------------------------- |
| 10 | set(RUNTIME_CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/core) | 10 | set(RUNTIME_CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/core) |
| 11 | +set(RUNTIME_API_DIR ${CMAKE_CURRENT_SOURCE_DIR}/api) | ||
| 11 | set(RUNTIME_FEATURE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/feature) | 12 | set(RUNTIME_FEATURE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/feature) |
| 12 | set(RUNTIME_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | 13 | set(RUNTIME_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake) |
| 13 | set(RUNTIME_CORE_ENUM_DESC_SRC_FILES | 14 | set(RUNTIME_CORE_ENUM_DESC_SRC_FILES |
Rsrc/runtime/core/src/api_impl/api_decorator_tiny_stub.cc→src/runtime/api/impl/api_decorator_tiny_stub.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error_standard_soc.cc→src/runtime/api/impl/api_error_standard_soc.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_error_tiny_stub.cc→src/runtime/api/impl/api_error_tiny_stub.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/api_impl_standard_soc.cc→src/runtime/api/impl/api_impl_standard_soc.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v100/api_impl_creator_c.cc→src/runtime/api/impl/v100/api_impl_creator_c.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v100/api_impl_v100_xpu.cc→src/runtime/api/impl/v100/api_impl_v100_xpu.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v200/api_impl_creator_c.cc→src/runtime/api/impl/v200/api_impl_creator_c.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_creator_c.cc→src/runtime/api/impl/v201/api_impl_creator_c.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_v200_adapt.cc→src/runtime/api/impl/v201/api_impl_v200_adapt.cc+0-0
文件重命名但无更改。
Rsrc/runtime/core/src/api_impl/v201/api_impl_v201.hpp→src/runtime/api/impl/v201/api_impl_v201.hpp+0-0
文件重命名但无更改。
| @@ -72,15 +72,15 @@ set(libruntime_api_src_files | |||
| 72 | ) | 72 | ) |
| 73 | 73 | ||
| 74 | set(libruntime_api_impl_src_files | 74 | set(libruntime_api_impl_src_files |
| 75 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 75 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 76 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator_tiny_stub.cc | 76 | + ${RUNTIME_API_DIR}/impl/api_decorator_tiny_stub.cc |
| 77 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 77 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 78 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 78 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 79 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 79 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 80 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 80 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 81 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_stub.cc | 81 | + ${RUNTIME_API_DIR}/impl/api_impl_stub.cc |
| 82 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_arch5162.cc | 82 | + ${RUNTIME_API_DIR}/impl/api_impl_arch5162.cc |
| 83 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc | 83 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc |
| 84 | ) | 84 | ) |
| 85 | 85 | ||
| 86 | set(common_src_files | 86 | set(common_src_files |
| @@ -184,8 +184,8 @@ set(runtime_src_aclgraph_list | |||
| 184 | ) | 184 | ) |
| 185 | 185 | ||
| 186 | set(libruntime_src_files_include_for_arch5162 | 186 | set(libruntime_src_files_include_for_arch5162 |
| 187 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_tiny_stub.cc | 187 | + ${RUNTIME_API_DIR}/impl/api_error_tiny_stub.cc |
| 188 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc | 188 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc |
| 189 | ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc | 189 | ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc |
| 190 | ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc | 190 | ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc |
| 191 | ${RUNTIME_CORE_DIR}/src/event/ipc_event_tiny_stub.cc | 191 | ${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/task | 331 | ${RUNTIME_DIR}/src/runtime/core/inc/task |
| 332 | ${RUNTIME_DIR}/src/runtime/core/inc/utils | 332 | ${RUNTIME_DIR}/src/runtime/core/inc/utils |
| 333 | ${RUNTIME_DIR}/src/runtime/api | 333 | ${RUNTIME_DIR}/src/runtime/api |
| 334 | - ${RUNTIME_CORE_DIR}/src/api_impl | 334 | + ${RUNTIME_API_DIR}/impl |
| 335 | ${RUNTIME_CORE_DIR}/src/engine | 335 | ${RUNTIME_CORE_DIR}/src/engine |
| 336 | ${RUNTIME_CORE_DIR}/src/engine/hwts | 336 | ${RUNTIME_CORE_DIR}/src/engine/hwts |
| 337 | ${RUNTIME_CORE_DIR}/src/engine/stars | 337 | ${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) --------------------- |
| 324 | set(libruntime_cmodel_src_files_optional | 324 | set(libruntime_cmodel_src_files_optional |
| 325 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_standard_soc.cc | 325 | + ${RUNTIME_API_DIR}/impl/api_error_standard_soc.cc |
| 326 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_standard_soc.cc | 326 | + ${RUNTIME_API_DIR}/impl/api_impl_standard_soc.cc |
| 327 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_soma.cc | 327 | + ${RUNTIME_API_DIR}/impl/api_impl_soma.cc |
| 328 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_uvm.cc | 328 | + ${RUNTIME_API_DIR}/impl/api_error_uvm.cc |
| 329 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_uvm.cc | 329 | + ${RUNTIME_API_DIR}/impl/api_impl_uvm.cc |
| 330 | ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc | 330 | ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc |
| 331 | ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc | 331 | ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc |
| 332 | ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc | 332 | ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc |
| @@ -370,7 +370,7 @@ set(libruntime_cmodel_api_src_files | |||
| 370 | 370 | ||
| 371 | set(xpu_tprt_api_file | 371 | set(xpu_tprt_api_file |
| 372 | ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc | 372 | ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc |
| 373 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc | 373 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc |
| 374 | ${RUNTIME_CORE_DIR}/src/launch/xpu_aicpu_c_stub.cc | 374 | ${RUNTIME_CORE_DIR}/src/launch/xpu_aicpu_c_stub.cc |
| 375 | ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc | 375 | ${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.cpp | 381 | ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp |
| 382 | ${RUNTIME_DIR}/src/runtime/api/api.cc | 382 | ${RUNTIME_DIR}/src/runtime/api/api.cc |
| 383 | ${RUNTIME_DIR}/src/runtime/api/api_global_err.cc | 383 | ${RUNTIME_DIR}/src/runtime/api/api_global_err.cc |
| 384 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 384 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 385 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc | 385 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc |
| 386 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 386 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 387 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc | 387 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc |
| 388 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 388 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 389 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc | 389 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc |
| 390 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc | 390 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc |
| 391 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 391 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 392 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc | 392 | + ${RUNTIME_API_DIR}/impl/api_impl_event.cc |
| 393 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc | 393 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc |
| 394 | 394 | ||
| 395 | # for V100 | 395 | # for V100 |
| 396 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 396 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 397 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc | 397 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc |
| 398 | ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc | 398 | ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc |
| 399 | ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc | 399 | ${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.cpp | 509 | ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp |
| 510 | ${RUNTIME_DIR}/src/runtime/api/api.cc | 510 | ${RUNTIME_DIR}/src/runtime/api/api.cc |
| 511 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 511 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 512 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc | 512 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc |
| 513 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 513 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 514 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc | 514 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc |
| 515 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 515 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 516 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc | 516 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc |
| 517 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc | 517 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc |
| 518 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 518 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 519 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc | 519 | + ${RUNTIME_API_DIR}/impl/api_impl_event.cc |
| 520 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_david.cc | 520 | + ${RUNTIME_API_DIR}/impl/api_impl_david.cc |
| 521 | ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc | 521 | ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc |
| 522 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc | 522 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc |
| 523 | 523 | ||
| 524 | # for V200 | 524 | # for V200 |
| 525 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 525 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 526 | - ${RUNTIME_CORE_DIR}/src/api_impl/v200/api_impl_creator_c.cc | 526 | + ${RUNTIME_API_DIR}/impl/v200/api_impl_creator_c.cc |
| 527 | 527 | ||
| 528 | ${RUNTIME_CORE_DIR}/src/context/context.cc | 528 | ${RUNTIME_CORE_DIR}/src/context/context.cc |
| 529 | ${RUNTIME_CORE_DIR}/src/device/device.cc | 529 | ${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.cc | 650 | ${RUNTIME_CORE_DIR}/src/plugin_manage/v200/plugin_old_arch.cc |
| 651 | ${RUNTIME_CORE_DIR}/src/plugin_manage/runtime_keeper.cc | 651 | ${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.cc | 653 | + ${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/task | 692 | ${RUNTIME_DIR}/src/runtime/core/inc/task |
| 693 | ${RUNTIME_DIR}/src/runtime/core/inc/utils | 693 | ${RUNTIME_DIR}/src/runtime/core/inc/utils |
| 694 | ${RUNTIME_DIR}/src/runtime/api | 694 | ${RUNTIME_DIR}/src/runtime/api |
| 695 | - ${RUNTIME_CORE_DIR}/src/api_impl | 695 | + ${RUNTIME_API_DIR}/impl |
| 696 | ${RUNTIME_CORE_DIR}/src/engine | 696 | ${RUNTIME_CORE_DIR}/src/engine |
| 697 | ${RUNTIME_CORE_DIR}/src/engine/hwts | 697 | ${RUNTIME_CORE_DIR}/src/engine/hwts |
| 698 | ${RUNTIME_CORE_DIR}/src/engine/stars | 698 | ${RUNTIME_CORE_DIR}/src/engine/stars |
| @@ -41,7 +41,7 @@ set(RUNTIME_INC_DIR_COMMON_PLATFORM | |||
| 41 | ${RUNTIME_DIR}/src/runtime/core/inc/task | 41 | ${RUNTIME_DIR}/src/runtime/core/inc/task |
| 42 | ${RUNTIME_DIR}/src/runtime/core/inc/utils | 42 | ${RUNTIME_DIR}/src/runtime/core/inc/utils |
| 43 | ${RUNTIME_DIR}/src/runtime/api | 43 | ${RUNTIME_DIR}/src/runtime/api |
| 44 | - ${RUNTIME_CORE_DIR}/src/api_impl | 44 | + ${RUNTIME_API_DIR}/impl |
| 45 | ${RUNTIME_CORE_DIR}/src/engine | 45 | ${RUNTIME_CORE_DIR}/src/engine |
| 46 | ${RUNTIME_CORE_DIR}/src/engine/hwts | 46 | ${RUNTIME_CORE_DIR}/src/engine/hwts |
| 47 | ${RUNTIME_CORE_DIR}/src/engine/stars | 47 | ${RUNTIME_CORE_DIR}/src/engine/stars |
| @@ -169,11 +169,11 @@ set(libruntime_callback_files | |||
| 169 | ) | 169 | ) |
| 170 | 170 | ||
| 171 | set(libruntime_src_files_optional | 171 | set(libruntime_src_files_optional |
| 172 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_standard_soc.cc | 172 | + ${RUNTIME_API_DIR}/impl/api_error_standard_soc.cc |
| 173 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_standard_soc.cc | 173 | + ${RUNTIME_API_DIR}/impl/api_impl_standard_soc.cc |
| 174 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_soma.cc | 174 | + ${RUNTIME_API_DIR}/impl/api_impl_soma.cc |
| 175 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_uvm.cc | 175 | + ${RUNTIME_API_DIR}/impl/api_error_uvm.cc |
| 176 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_uvm.cc | 176 | + ${RUNTIME_API_DIR}/impl/api_impl_uvm.cc |
| 177 | ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc | 177 | ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc |
| 178 | ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc | 178 | ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc |
| 179 | ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_standard_soc.cc | 179 | ${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 ------------------------- |
| 261 | set(xpu_tprt_api_file | 261 | set(xpu_tprt_api_file |
| 262 | ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc | 262 | ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc |
| 263 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100_xpu.cc | 263 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_v100_xpu.cc |
| 264 | ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc | 264 | ${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.cpp | 292 | ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp |
| 293 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 293 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 294 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc | 294 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc |
| 295 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 295 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 296 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc | 296 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc |
| 297 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc | 297 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc |
| 298 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 298 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 299 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc | 299 | + ${RUNTIME_API_DIR}/impl/api_impl_event.cc |
| 300 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 300 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 301 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc | 301 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc |
| 302 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc | 302 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc |
| 303 | 303 | ||
| 304 | # for V100 | 304 | # for V100 |
| 305 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 305 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 306 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc | 306 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc |
| 307 | ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc | 307 | ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc |
| 308 | ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc | 308 | ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc |
| 309 | ${RUNTIME_CORE_DIR}/src/device/device.cc | 309 | ${RUNTIME_CORE_DIR}/src/device/device.cc |
| @@ -455,7 +455,7 @@ set(RUNTIME_INC_DIR_OPEN | |||
| 455 | ${RUNTIME_DIR}/src/runtime/core/inc/task | 455 | ${RUNTIME_DIR}/src/runtime/core/inc/task |
| 456 | ${RUNTIME_DIR}/src/runtime/core/inc/utils | 456 | ${RUNTIME_DIR}/src/runtime/core/inc/utils |
| 457 | ${RUNTIME_DIR}/src/runtime/api | 457 | ${RUNTIME_DIR}/src/runtime/api |
| 458 | - ${RUNTIME_CORE_DIR}/src/api_impl | 458 | + ${RUNTIME_API_DIR}/impl |
| 459 | ${RUNTIME_CORE_DIR}/src/engine | 459 | ${RUNTIME_CORE_DIR}/src/engine |
| 460 | ${RUNTIME_CORE_DIR}/src/engine/hwts | 460 | ${RUNTIME_CORE_DIR}/src/engine/hwts |
| 461 | ${RUNTIME_CORE_DIR}/src/engine/stars | 461 | ${RUNTIME_CORE_DIR}/src/engine/stars |
| @@ -159,10 +159,10 @@ set(libruntime_callback_files | |||
| 159 | ) | 159 | ) |
| 160 | 160 | ||
| 161 | set(libruntime_src_files_include_for_tiny | 161 | set(libruntime_src_files_include_for_tiny |
| 162 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_tiny_stub.cc | 162 | + ${RUNTIME_API_DIR}/impl/api_error_tiny_stub.cc |
| 163 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_stub.cc | 163 | + ${RUNTIME_API_DIR}/impl/api_impl_stub.cc |
| 164 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_tiny.cc | 164 | + ${RUNTIME_API_DIR}/impl/api_impl_tiny.cc |
| 165 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc | 165 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc |
| 166 | ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc | 166 | ${RUNTIME_CORE_DIR}/src/context/context_tiny_stub.cc |
| 167 | ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_tiny_stub.cc | 167 | ${RUNTIME_FEATURE_DIR}/ffts/context_ffts_tiny_stub.cc |
| 168 | ${RUNTIME_CORE_DIR}/src/dfx/printf_tiny_stub.cc | 168 | ${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.cc | 189 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/context_tiny_stub_aclgraph.cc |
| 190 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/event_capture_tiny_stub.cc | 190 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/event_capture_tiny_stub.cc |
| 191 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/capture_adapt_tiny_stub.cc | 191 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/capture_adapt_tiny_stub.cc |
| 192 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator_tiny_stub.cc | 192 | + ${RUNTIME_API_DIR}/impl/api_decorator_tiny_stub.cc |
| 193 | ${RUNTIME_FEATURE_DIR}/model/tiny/model_aclgraph_tiny_stub.cc | 193 | ${RUNTIME_FEATURE_DIR}/model/tiny/model_aclgraph_tiny_stub.cc |
| 194 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/stream_capture_tiny_stub.cc | 194 | ${RUNTIME_FEATURE_DIR}/aclgraph/tiny/stream_capture_tiny_stub.cc |
| 195 | ${RUNTIME_FEATURE_DIR}/jetty/jetty_stub.cc | 195 | ${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.cpp | 215 | ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp |
| 216 | ${RUNTIME_DIR}/src/runtime/api/api.cc | 216 | ${RUNTIME_DIR}/src/runtime/api/api.cc |
| 217 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 217 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 218 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 218 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 219 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 219 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 220 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 220 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 221 | ${RUNTIME_CORE_DIR}/src/launch/cond_stars.cc | 221 | ${RUNTIME_CORE_DIR}/src/launch/cond_stars.cc |
| 222 | ${RUNTIME_CORE_DIR}/src/launch/label_common.cc | 222 | ${RUNTIME_CORE_DIR}/src/launch/label_common.cc |
| 223 | ${RUNTIME_CORE_DIR}/src/launch/label_stars.cc | 223 | ${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.cc | 226 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc |
| 227 | 227 | ||
| 228 | # for V100 | 228 | # for V100 |
| 229 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 229 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 230 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc | 230 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc |
| 231 | ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc | 231 | ${RUNTIME_CORE_DIR}/src/device/ctrl_msg.cc |
| 232 | ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc | 232 | ${RUNTIME_CORE_DIR}/src/device/ctrl_sq.cc |
| 233 | 233 | ||
| @@ -359,16 +359,16 @@ set_source_files_properties(${libruntime_aclrt_impl_src_files} | |||
| 359 | set(libruntime_v100_src_files | 359 | set(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.cpp | 361 | ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp |
| 362 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 362 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 363 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 363 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 364 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 364 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 365 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 365 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 366 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 366 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 367 | ${RUNTIME_CORE_DIR}/src/dfx/kernel_dfx_info.cc | 367 | ${RUNTIME_CORE_DIR}/src/dfx/kernel_dfx_info.cc |
| 368 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc | 368 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc |
| 369 | 369 | ||
| 370 | # for V100 | 370 | # for V100 |
| 371 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_creator_c.cc | 371 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_creator_c.cc |
| 372 | 372 | ||
| 373 | ${RUNTIME_CORE_DIR}/src/device/device.cc | 373 | ${RUNTIME_CORE_DIR}/src/device/device.cc |
| 374 | ${RUNTIME_CORE_DIR}/src/device/raw_device.cc | 374 | ${RUNTIME_CORE_DIR}/src/device/raw_device.cc |
| @@ -500,7 +500,7 @@ set(RUNTIME_INC_DIR_TINY | |||
| 500 | ${RUNTIME_DIR}/src/runtime/core/inc/task | 500 | ${RUNTIME_DIR}/src/runtime/core/inc/task |
| 501 | ${RUNTIME_DIR}/src/runtime/core/inc/utils | 501 | ${RUNTIME_DIR}/src/runtime/core/inc/utils |
| 502 | ${RUNTIME_DIR}/src/runtime/api | 502 | ${RUNTIME_DIR}/src/runtime/api |
| 503 | - ${RUNTIME_CORE_DIR}/src/api_impl | 503 | + ${RUNTIME_API_DIR}/impl |
| 504 | ${RUNTIME_CORE_DIR}/src/engine | 504 | ${RUNTIME_CORE_DIR}/src/engine |
| 505 | ${RUNTIME_CORE_DIR}/src/engine/hwts | 505 | ${RUNTIME_CORE_DIR}/src/engine/hwts |
| 506 | ${RUNTIME_CORE_DIR}/src/engine/stars | 506 | ${RUNTIME_CORE_DIR}/src/engine/stars |
| @@ -12,7 +12,7 @@ include(${RUNTIME_DIR}/pkg_inc/runtime/runtime/runtime_headers.cmake) | |||
| 12 | 12 | ||
| 13 | set(xpu_tprt_api_file | 13 | set(xpu_tprt_api_file |
| 14 | ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc | 14 | ${RUNTIME_FEATURE_DIR}/xpu/api_error_xpu.cc |
| 15 | - ${RUNTIME_CORE_DIR}/src/api_impl/v100/api_impl_v100.cc | 15 | + ${RUNTIME_API_DIR}/impl/v100/api_impl_v100.cc |
| 16 | ${RUNTIME_FEATURE_DIR}/xpu/api_decorator_xpu.cc | 16 | ${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.cc | 34 | ${RUNTIME_FEATURE_DIR}/xpu/program_plat.cc |
| 35 | ${RUNTIME_FEATURE_DIR}/xpu/api_impl_xpu_v200.cc | 35 | ${RUNTIME_FEATURE_DIR}/xpu/api_impl_xpu_v200.cc |
| 36 | ${RUNTIME_CORE_DIR}/src/kernel/json_parse.cc | 36 | ${RUNTIME_CORE_DIR}/src/kernel/json_parse.cc |
| 37 | - ${RUNTIME_CORE_DIR}/src/api_impl/v200/api_impl_v200.cc | 37 | + ${RUNTIME_API_DIR}/impl/v200/api_impl_v200.cc |
| 38 | ) | 38 | ) |
| 39 | 39 | ||
| 40 | set(david_series_common_task_src_file | 40 | set(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) --------------------- |
| 210 | set(libruntime_v200_src_files_exclude_for_tiny | 210 | set(libruntime_v200_src_files_exclude_for_tiny |
| 211 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_standard_soc.cc | 211 | + ${RUNTIME_API_DIR}/impl/api_error_standard_soc.cc |
| 212 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_standard_soc.cc | 212 | + ${RUNTIME_API_DIR}/impl/api_impl_standard_soc.cc |
| 213 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_soma.cc | 213 | + ${RUNTIME_API_DIR}/impl/api_impl_soma.cc |
| 214 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error_uvm.cc | 214 | + ${RUNTIME_API_DIR}/impl/api_error_uvm.cc |
| 215 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_uvm.cc | 215 | + ${RUNTIME_API_DIR}/impl/api_impl_uvm.cc |
| 216 | ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc | 216 | ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc |
| 217 | ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc | 217 | ${RUNTIME_CORE_DIR}/src/context/context_standard_soc.cc |
| 218 | ${RUNTIME_FEATURE_DIR}/aclgraph/context_standard_soc_aclgraph.cc | 218 | ${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.cpp | 249 | ${RUNTIME_CORE_DIR}/src/common/inner_thread_local.cpp |
| 250 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_decorator.cc | 250 | + ${RUNTIME_API_DIR}/impl/api_decorator.cc |
| 251 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc | 251 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_decorator_aclgraph.cc |
| 252 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_error.cc | 252 | + ${RUNTIME_API_DIR}/impl/api_error.cc |
| 253 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc | 253 | ${RUNTIME_FEATURE_DIR}/aclgraph/api_error_aclgraph.cc |
| 254 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_david.cc | 254 | + ${RUNTIME_API_DIR}/impl/api_impl_david.cc |
| 255 | ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc | 255 | ${RUNTIME_FEATURE_DIR}/aclgraph/v200/api_impl_david_capture_event.cc |
| 256 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl.cc | 256 | + ${RUNTIME_API_DIR}/impl/api_impl.cc |
| 257 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc | 257 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_aclgraph.cc |
| 258 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc | 258 | ${RUNTIME_FEATURE_DIR}/aclgraph/v100/api_impl_capture_event.cc |
| 259 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_mbuf.cc | 259 | + ${RUNTIME_API_DIR}/impl/api_impl_mbuf.cc |
| 260 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_event.cc | 260 | + ${RUNTIME_API_DIR}/impl/api_impl_event.cc |
| 261 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc | 261 | ${RUNTIME_CORE_DIR}/src/uvm/uvm_callback.cc |
| 262 | ${RUNTIME_CORE_DIR}/src/context/context.cc | 262 | ${RUNTIME_CORE_DIR}/src/context/context.cc |
| 263 | ${RUNTIME_CORE_DIR}/src/device/device.cc | 263 | ${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 v200 | 378 | # for v200 |
| 379 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 379 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 380 | - ${RUNTIME_CORE_DIR}/src/api_impl/v200/api_impl_creator_c.cc | 380 | + ${RUNTIME_API_DIR}/impl/v200/api_impl_creator_c.cc |
| 381 | ${RUNTIME_DIR}/src/runtime/driver/v200/npu_driver.cc | 381 | ${RUNTIME_DIR}/src/runtime/driver/v200/npu_driver.cc |
| 382 | ${RUNTIME_CORE_DIR}/src/runtime_v200/runtime_adapt.cc | 382 | ${RUNTIME_CORE_DIR}/src/runtime_v200/runtime_adapt.cc |
| 383 | ${RUNTIME_CORE_DIR}/src/device/dev_simt_stack_checker.cc | 383 | ${RUNTIME_CORE_DIR}/src/device/dev_simt_stack_checker.cc |
| @@ -403,10 +403,10 @@ set(libruntime_v201_src_files | |||
| 403 | 403 | ||
| 404 | # for v201 | 404 | # for v201 |
| 405 | ${RUNTIME_CORE_DIR}/src/runtime_v100/runtime_adapt.cc | 405 | ${RUNTIME_CORE_DIR}/src/runtime_v100/runtime_adapt.cc |
| 406 | - ${RUNTIME_CORE_DIR}/src/api_impl/api_impl_creator.cc | 406 | + ${RUNTIME_API_DIR}/impl/api_impl_creator.cc |
| 407 | - ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_creator_c.cc | 407 | + ${RUNTIME_API_DIR}/impl/v201/api_impl_creator_c.cc |
| 408 | - ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_v201.cc | 408 | + ${RUNTIME_API_DIR}/impl/v201/api_impl_v201.cc |
| 409 | - ${RUNTIME_CORE_DIR}/src/api_impl/v201/api_impl_v200_adapt.cc | 409 | + ${RUNTIME_API_DIR}/impl/v201/api_impl_v200_adapt.cc |
| 410 | ${RUNTIME_CORE_DIR}/src/common/ioctl/v201/ioctl_utils.cc | 410 | ${RUNTIME_CORE_DIR}/src/common/ioctl/v201/ioctl_utils.cc |
| 411 | ${RUNTIME_CORE_DIR}/src/device/v201/dev_simt_stack_checker.cc | 411 | ${RUNTIME_CORE_DIR}/src/device/v201/dev_simt_stack_checker.cc |
| 412 | ${RUNTIME_DIR}/src/runtime/driver/v201/npu_driver.cc | 412 | ${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/task | 473 | ${RUNTIME_DIR}/src/runtime/core/inc/task |
| 474 | ${RUNTIME_DIR}/src/runtime/core/inc/utils | 474 | ${RUNTIME_DIR}/src/runtime/core/inc/utils |
| 475 | ${RUNTIME_DIR}/src/runtime/api | 475 | ${RUNTIME_DIR}/src/runtime/api |
| 476 | - ${RUNTIME_CORE_DIR}/src/api_impl | 476 | + ${RUNTIME_API_DIR}/impl |
| 477 | ${RUNTIME_CORE_DIR}/src/engine | 477 | ${RUNTIME_CORE_DIR}/src/engine |
| 478 | ${RUNTIME_CORE_DIR}/src/engine/hwts | 478 | ${RUNTIME_CORE_DIR}/src/engine/hwts |
| 479 | ${RUNTIME_CORE_DIR}/src/engine/stars | 479 | ${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.cc | 368 | ${TOP_DIR}/src/runtime/api/api_c_snapshot.cc |
| 369 | ${TOP_DIR}/src/runtime/api/api_c_uvm.cc | 369 | ${TOP_DIR}/src/runtime/api/api_c_uvm.cc |
| 370 | ${TOP_DIR}/src/runtime/api/api_c_kernel.cc | 370 | ${TOP_DIR}/src/runtime/api/api_c_kernel.cc |
| 371 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc | 371 | + ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc |
| 372 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc | 372 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc |
| 373 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc | 373 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc |
| 374 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc | 374 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc |
| 375 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc | 375 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc |
| 376 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_david.cc | 376 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_david.cc |
| 377 | ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc | 377 | ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc |
| 378 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc | 378 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc |
| 379 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc | 379 | + ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc |
| 380 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc | 380 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc |
| 381 | ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc | 381 | ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc |
| 382 | ${TOP_DIR}/src/runtime/feature/aclgraph/api_decorator_aclgraph.cc | 382 | ${TOP_DIR}/src/runtime/feature/aclgraph/api_decorator_aclgraph.cc |
| 383 | ${TOP_DIR}/src/runtime/feature/aclgraph/api_error_aclgraph.cc | 383 | ${TOP_DIR}/src/runtime/feature/aclgraph/api_error_aclgraph.cc |
| @@ -447,12 +447,12 @@ set(runtimeut_src_tiny_exclude_list | |||
| 447 | set(runtimeut_src_tiny_include_list | 447 | set(runtimeut_src_tiny_include_list |
| 448 | ${TOP_DIR}/src/runtime/api/api_c_stub.cc | 448 | ${TOP_DIR}/src/runtime/api/api_c_stub.cc |
| 449 | ${TOP_DIR}/src/runtime/api/api_c_tiny.cc | 449 | ${TOP_DIR}/src/runtime/api/api_c_tiny.cc |
| 450 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_tiny_stub.cc | 450 | + ${TOP_DIR}/src/runtime/api/impl/api_error_tiny_stub.cc |
| 451 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_stub.cc | 451 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_stub.cc |
| 452 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_tiny.cc | 452 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_tiny.cc |
| 453 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator_tiny_stub.cc | 453 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator_tiny_stub.cc |
| 454 | ${TOP_DIR}/src/runtime/core/src/dfx/fast_recover.cc | 454 | ${TOP_DIR}/src/runtime/core/src/dfx/fast_recover.cc |
| 455 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc | 455 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc |
| 456 | ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc | 456 | ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc |
| 457 | ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/context_tiny_stub_aclgraph.cc | 457 | ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/context_tiny_stub_aclgraph.cc |
| 458 | ${TOP_DIR}/src/runtime/feature/aclgraph/tiny/capture_adapt_tiny_stub.cc | 458 | ${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.cc | 553 | ${TOP_DIR}/src/runtime/api/api.cc |
| 554 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc | 554 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc |
| 555 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc | 555 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc |
| 556 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc | 556 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc |
| 557 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc | 557 | + ${TOP_DIR}/src/runtime/api/impl/api_impl.cc |
| 558 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc | 558 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc |
| 559 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc | 559 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc |
| 560 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc | 560 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc |
| 561 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc | 561 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc |
| 562 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc | 562 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc |
| 563 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc | 563 | + ${TOP_DIR}/src/runtime/api/impl/api_error.cc |
| 564 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc | 564 | + ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc |
| 565 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc | 565 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc |
| 566 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc | 566 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc |
| 567 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc | 567 | + ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc |
| 568 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc | 568 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc |
| 569 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc | 569 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc |
| 570 | ${TOP_DIR}/src/runtime/core/src/context/context.cc | 570 | ${TOP_DIR}/src/runtime/core/src/context/context.cc |
| 571 | ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc | 571 | ${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.cc | 687 | ${TOP_DIR}/src/runtime/api/api.cc |
| 688 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc | 688 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc |
| 689 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc | 689 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc |
| 690 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc | 690 | + ${TOP_DIR}/src/runtime/api/impl/api_impl.cc |
| 691 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc | 691 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc |
| 692 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc | 692 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc |
| 693 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_david.cc | 693 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_david.cc |
| 694 | ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc | 694 | ${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.cc | 695 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc |
| 696 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v200/api_impl_creator_c.cc | 696 | + ${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.cc | 697 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc |
| 698 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc | 698 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc |
| 699 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc | 699 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc |
| 700 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc | 700 | + ${TOP_DIR}/src/runtime/api/impl/api_error.cc |
| 701 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc | 701 | + ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc |
| 702 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v200/api_impl_v200.cc | 702 | + ${TOP_DIR}/src/runtime/api/impl/v200/api_impl_v200.cc |
| 703 | ${TOP_DIR}/src/runtime/feature/xpu/api_impl_xpu_v200.cc | 703 | ${TOP_DIR}/src/runtime/feature/xpu/api_impl_xpu_v200.cc |
| 704 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc | 704 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc |
| 705 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc | 705 | + ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc |
| 706 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc | 706 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc |
| 707 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc | 707 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc |
| 708 | ${TOP_DIR}/src/runtime/core/src/context/context.cc | 708 | ${TOP_DIR}/src/runtime/core/src/context/context.cc |
| 709 | ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc | 709 | ${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/hwts | 1392 | ${TOP_DIR}/src/runtime/core/inc/engine/hwts |
| 1393 | ${TOP_DIR}/src/runtime/core/inc/dqs | 1393 | ${TOP_DIR}/src/runtime/core/inc/dqs |
| 1394 | ${TOP_DIR}/src/runtime/api | 1394 | ${TOP_DIR}/src/runtime/api |
| 1395 | - ${TOP_DIR}/src/runtime/core/src/api_impl | 1395 | + ${TOP_DIR}/src/runtime/api/impl |
| 1396 | ${TOP_DIR}/src/runtime/core/src/engine | 1396 | ${TOP_DIR}/src/runtime/core/src/engine |
| 1397 | ${TOP_DIR}/src/runtime/core/src/engine/hwts | 1397 | ${TOP_DIR}/src/runtime/core/src/engine/hwts |
| 1398 | ${TOP_DIR}/src/runtime/core/src/engine/stars | 1398 | ${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.cc | 1549 | ${TOP_DIR}/src/runtime/feature/dqs/dqs_task.cc |
| 1550 | ${TOP_DIR}/src/runtime/feature/dqs/dqs_c.cc | 1550 | ${TOP_DIR}/src/runtime/feature/dqs/dqs_c.cc |
| 1551 | ${TOP_DIR}/src/runtime/feature/dqs/model_serial_sched_task.cc | 1551 | ${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.cc | 1552 | + ${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.cc | 1553 | ${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.cc | 1554 | ${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.cc | 1555 | ${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.cc | 1574 | ${TOP_DIR}/src/runtime/api/api.cc |
| 1575 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc | 1575 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc |
| 1576 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc | 1576 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc |
| 1577 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc | 1577 | + ${TOP_DIR}/src/runtime/api/impl/api_impl.cc |
| 1578 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc | 1578 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc |
| 1579 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc | 1579 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc |
| 1580 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_david.cc | 1580 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_david.cc |
| 1581 | ${TOP_DIR}/src/runtime/feature/aclgraph/v200/api_impl_david_capture_event.cc | 1581 | ${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.cc | 1582 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc |
| 1583 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc | 1583 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc |
| 1584 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v201/api_impl_v201.cc | 1584 | + ${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.cc | 1585 | + ${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.cc | 1586 | + ${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.cc | 1587 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc |
| 1588 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc | 1588 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc |
| 1589 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc | 1589 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc |
| 1590 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc | 1590 | + ${TOP_DIR}/src/runtime/api/impl/api_error.cc |
| 1591 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc | 1591 | + ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc |
| 1592 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc | 1592 | + ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc |
| 1593 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc | 1593 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc |
| 1594 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc | 1594 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc |
| 1595 | ${TOP_DIR}/src/runtime/core/src/context/context.cc | 1595 | ${TOP_DIR}/src/runtime/core/src/context/context.cc |
| 1596 | ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc | 1596 | ${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/v201 | 1750 | ${TOP_DIR}/src/runtime/core/inc/sqe/v201 |
| 1751 | ${TOP_DIR}/src/runtime/core/inc/cond_isa/v201 | 1751 | ${TOP_DIR}/src/runtime/core/inc/cond_isa/v201 |
| 1752 | ${TOP_DIR}/src/runtime/feature/dqs | 1752 | ${TOP_DIR}/src/runtime/feature/dqs |
| 1753 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v201 | 1753 | + ${TOP_DIR}/src/runtime/api/impl/v201 |
| 1754 | ${TOP_DIR}/src/runtime/feature/dqs | 1754 | ${TOP_DIR}/src/runtime/feature/dqs |
| 1755 | ${TOP_DIR}/src/runtime/core/src/common/ioctl/v201 | 1755 | ${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.cc | 252 | ${TOP_DIR}/src/runtime/api/api.cc |
| 253 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc | 253 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc |
| 254 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc | 254 | + ${TOP_DIR}/src/runtime/api/impl/api_impl.cc |
| 255 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc | 255 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc |
| 256 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_standard_soc.cc | 256 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_standard_soc.cc |
| 257 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_soma.cc | 257 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_soma.cc |
| 258 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_event.cc | 258 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_event.cc |
| 259 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc | 259 | + ${TOP_DIR}/src/runtime/api/impl/api_error.cc |
| 260 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_standard_soc.cc | 260 | + ${TOP_DIR}/src/runtime/api/impl/api_error_standard_soc.cc |
| 261 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_uvm.cc | 261 | + ${TOP_DIR}/src/runtime/api/impl/api_error_uvm.cc |
| 262 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_uvm.cc | 262 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_uvm.cc |
| 263 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc | 263 | ${TOP_DIR}/src/runtime/core/src/uvm/uvm_callback.cc |
| 264 | ${TOP_DIR}/src/runtime/core/src/context/context.cc | 264 | ${TOP_DIR}/src/runtime/core/src/context/context.cc |
| 265 | ${TOP_DIR}/src/runtime/core/src/context/context_standard_soc.cc | 265 | ${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.cc | 354 | ${TOP_DIR}/src/runtime/core/src/engine/hwts/direct_hwts_engine.cc |
| 355 | ${TOP_DIR}/src/runtime/core/src/engine/engine_factory.cc | 355 | ${TOP_DIR}/src/runtime/core/src/engine/engine_factory.cc |
| 356 | ${TOP_DIR}/src/runtime/core/src/engine/hwts/shm_cq.cc | 356 | ${TOP_DIR}/src/runtime/core/src/engine/hwts/shm_cq.cc |
| 357 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc | 357 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc |
| 358 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc | 358 | + ${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.cc | 361 | ${TOP_DIR}/src/runtime/feature/xpu/api_decorator_xpu.cc |
| 362 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100_xpu.cc | 362 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100_xpu.cc |
| 363 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc | 363 | ${TOP_DIR}/src/runtime/feature/xpu/api_error_xpu.cc |
| 364 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc | 364 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc |
| 365 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc | 365 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc |
| 366 | ${TOP_DIR}/src/runtime/core/src/kernel/json_parse.cc | 366 | ${TOP_DIR}/src/runtime/core/src/kernel/json_parse.cc |
| 367 | ${TOP_DIR}/src/runtime/core/src/kernel/program_common.cc | 367 | ${TOP_DIR}/src/runtime/core/src/kernel/program_common.cc |
| 368 | ${TOP_DIR}/src/runtime/core/src/kernel/kernel_utils.cc | 368 | ${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/hwts | 485 | ${TOP_DIR}/src/runtime/core/inc/engine/hwts |
| 486 | ${TOP_DIR}/src/runtime/core/inc/dqs | 486 | ${TOP_DIR}/src/runtime/core/inc/dqs |
| 487 | ${TOP_DIR}/src/runtime/api | 487 | ${TOP_DIR}/src/runtime/api |
| 488 | - ${TOP_DIR}/src/runtime/core/src/api_impl | 488 | + ${TOP_DIR}/src/runtime/api/impl |
| 489 | ${TOP_DIR}/src/runtime/core/src/engine | 489 | ${TOP_DIR}/src/runtime/core/src/engine |
| 490 | ${TOP_DIR}/src/runtime/core/src/engine/hwts | 490 | ${TOP_DIR}/src/runtime/core/src/engine/hwts |
| 491 | ${TOP_DIR}/src/runtime/core/src/engine/stars | 491 | ${TOP_DIR}/src/runtime/core/src/engine/stars |
| @@ -52,9 +52,9 @@ set(runtimeut_src_task_list | |||
| 52 | ) | 52 | ) |
| 53 | 53 | ||
| 54 | set(libruntime_src_files_include_for_arch5162 | 54 | set(libruntime_src_files_include_for_arch5162 |
| 55 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error_tiny_stub.cc | 55 | + ${TOP_DIR}/src/runtime/api/impl/api_error_tiny_stub.cc |
| 56 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_stub.cc | 56 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_stub.cc |
| 57 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_v100.cc | 57 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_v100.cc |
| 58 | ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc | 58 | ${TOP_DIR}/src/runtime/core/src/context/context_tiny_stub.cc |
| 59 | ${TOP_DIR}/src/runtime/core/src/dfx/printf_tiny_stub.cc | 59 | ${TOP_DIR}/src/runtime/core/src/dfx/printf_tiny_stub.cc |
| 60 | ${TOP_DIR}/src/runtime/core/src/event/ipc_event_tiny_stub.cc | 60 | ${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 | ||
| 95 | set(runtimeut_src_api_impl_list | 95 | set(runtimeut_src_api_impl_list |
| 96 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator.cc | 96 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator.cc |
| 97 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_decorator_tiny_stub.cc | 97 | + ${TOP_DIR}/src/runtime/api/impl/api_decorator_tiny_stub.cc |
| 98 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_error.cc | 98 | + ${TOP_DIR}/src/runtime/api/impl/api_error.cc |
| 99 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl.cc | 99 | + ${TOP_DIR}/src/runtime/api/impl/api_impl.cc |
| 100 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_creator.cc | 100 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_creator.cc |
| 101 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_mbuf.cc | 101 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_mbuf.cc |
| 102 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_stub.cc | 102 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_stub.cc |
| 103 | - ${TOP_DIR}/src/runtime/core/src/api_impl/api_impl_arch5162.cc | 103 | + ${TOP_DIR}/src/runtime/api/impl/api_impl_arch5162.cc |
| 104 | - ${TOP_DIR}/src/runtime/core/src/api_impl/v100/api_impl_creator_c.cc | 104 | + ${TOP_DIR}/src/runtime/api/impl/v100/api_impl_creator_c.cc |
| 105 | ) | 105 | ) |
| 106 | 106 | ||
| 107 | set(runtimeut_src_common_list | 107 | set(runtimeut_src_common_list |
| @@ -424,7 +424,7 @@ set(RUNTIME_TEST_INC_DIR_COMMON | |||
| 424 | ${TOP_DIR}/src/runtime/core/inc/engine/hwts | 424 | ${TOP_DIR}/src/runtime/core/inc/engine/hwts |
| 425 | ${TOP_DIR}/src/runtime/core/inc/dqs | 425 | ${TOP_DIR}/src/runtime/core/inc/dqs |
| 426 | ${TOP_DIR}/src/runtime/api | 426 | ${TOP_DIR}/src/runtime/api |
| 427 | - ${TOP_DIR}/src/runtime/core/src/api_impl | 427 | + ${TOP_DIR}/src/runtime/api/impl |
| 428 | ${TOP_DIR}/src/runtime/core/src/engine | 428 | ${TOP_DIR}/src/runtime/core/src/engine |
| 429 | ${TOP_DIR}/src/runtime/core/src/engine/hwts | 429 | ${TOP_DIR}/src/runtime/core/src/engine/hwts |
| 430 | ${TOP_DIR}/src/runtime/core/src/engine/stars | 430 | ${TOP_DIR}/src/runtime/core/src/engine/stars |