已关闭
[Bug-Report|缺陷反馈]: ops-ras 依赖和本地 OpAPI 头文件缺失 #19
LiuZonggu创建于  8月19日关闭于  8月19日
LiuZonggu成员
8月19日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

提交 3d01c9dda789a61544ef9ea115a2b559c9690997 在精简工程时删除了仓内仍被产品 OpAPI 和 UT 直接引用的 aclnn_kernels/cast.h、aclnn_kernels/contiguous.h、aclnn_kernels/common/op_error_check.h,并使用 RAS_NEEDS_AICPU 等源码扫描门控基础依赖。

产品 OpAPI 仍直接使用这些本地头文件,且 crypto.cpp、obfuscation_calculate.cpp、obfuscation_setup.cpp 即使不存在 op_kernel_aicpu 源码,仍通过 opdev/aicpu/aicpu_task.h 消费 AICPU 头文件,导致依赖被错误跳过后编译失败。

Environment / 环境信息 (Mandatory / 必填)

  • 仓库:cann/ops-ras
  • 修复基线:7943b35facaefc02633d44ee6baf623c158ee093
  • 触发环境:CI 多仓源码构建模式
  • 本地复验环境:aarch64,GCC 11.4.0,CANN 9.2.0 安装依赖

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. 使用包含 3d01c9d 的 ops-ras 源码参与多仓源码构建。
  2. 构建默认 RAS 产品算子,此时仓内没有产品 op_kernel_aicpu/*.cpp。
  3. 编译 reliability/crypto、reliability/obfuscation_calculate、reliability/obfuscation_setup 下的 OpAPI Host 源码。
  4. CMake 因 RAS_NEEDS_AICPU=FALSE 不加载 AICPU include,同时本地 common/stub/op_api 根和相关 aclnn_kernels 头文件已被移除,编译失败。

Describe the expected behavior / 预期结果 (Mandatory / 必填)

  • AICPU、Tiling API、Protobuf、Eigen 等基础工程依赖保留,不按不完整的源码目录扫描结果裁剪。
  • ENABLE_TEST 统一控制 tikicpulib;仅 mmpa 保留基于真实 Graph 源码和 Graph UT 消费者的 RAS 门控。
  • 仓内仍有直接消费者的本地 OpAPI include 根和 cast.h、contiguous.h、op_error_check.h 必须保留。
  • 默认产品、OpAPI UT 和显式 Graph 示例构建均应成功。

失败包括:

  • 5 处 fatal error: aclnn_kernels/cast.h: No such file or directory
  • 3 处 fatal error: aicpu_engine_struct.h: No such file or directory

contiguous.h 和 op_error_check.h 同样存在活跃源码消费者,只是编译在更早的 cast.h 缺失处终止,尚未继续暴露。

Special notes for this issue/备注 (Optional / 选填)

修复已在以下路径完成验证:默认产品 all 构建、UT 通过。

关联 PR:https://gitcode.com/cann/ops-ras/merge_requests/84

likedislike
LLiuZonggu成员
8月19日 添加了label:bug-report
LLiuZonggu成员
8月19日 修改了issue 的描述
LLiuZonggu成员
8月19日 修改了issue 的描述
LLiuZonggu成员
8月19日 修改了issue 的描述
LLiuZonggu成员
8月19日 修改了issue 的描述
LLiuZonggu成员
8月19日 修改标题为 “[Bug-Report|缺陷反馈]: ops-ras 依赖和本地 OpAPI 头文件缺失”,原标题为“[Bug-Report|缺陷反馈]: ops-ras 源码模式 CI 依赖和本地 OpAPI 头文件缺失”
LLiuZonggu成员
8月19日 将 LiuZonggu 设为负责人
CANN-robotCANN-robot成员
8月19日 关闭了 issue
CANN-robotCANN-robot成员
8月19日 添加了label:resolved
LLiuZonggu成员
8月20日 issue状态由 进行中 改变为 已完成