Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
提交 3d01c9dda789a61544ef9ea115a2b559c9690997 在精简工程时删除了仓内仍被产品 OpAPI 和 UT 直接引用的 aclnn_kernels/cast.h、aclnn_kernels/contiguous.h、aclnn_kernels/common/op_error_check.h,并使用 RAS_NEEDS_AICPU 等源码扫描门控基础依赖。
3d01c9dda789a61544ef9ea115a2b559c9690997
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 头文件,导致依赖被错误跳过后编译失败。
crypto.cpp
obfuscation_calculate.cpp
obfuscation_setup.cpp
op_kernel_aicpu
opdev/aicpu/aicpu_task.h
cann/ops-ras
7943b35facaefc02633d44ee6baf623c158ee093
3d01c9d
op_kernel_aicpu/*.cpp
reliability/crypto
reliability/obfuscation_calculate
reliability/obfuscation_setup
RAS_NEEDS_AICPU=FALSE
common/stub/op_api
aclnn_kernels
ENABLE_TEST
tikicpulib
mmpa
cast.h
contiguous.h
op_error_check.h
失败包括:
fatal error: aclnn_kernels/cast.h: No such file or directory
fatal error: aicpu_engine_struct.h: No such file or directory
contiguous.h 和 op_error_check.h 同样存在活跃源码消费者,只是编译在更早的 cast.h 缺失处终止,尚未继续暴露。
修复已在以下路径完成验证:默认产品 all 构建、UT 通过。
all
关联 PR:https://gitcode.com/cann/ops-ras/merge_requests/84
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-ras7943b35facaefc02633d44ee6baf623c158ee093Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
3d01c9d的 ops-ras 源码参与多仓源码构建。op_kernel_aicpu/*.cpp。reliability/crypto、reliability/obfuscation_calculate、reliability/obfuscation_setup下的 OpAPI Host 源码。RAS_NEEDS_AICPU=FALSE不加载 AICPU include,同时本地common/stub/op_api根和相关aclnn_kernels头文件已被移除,编译失败。Describe the expected behavior / 预期结果 (Mandatory / 必填)
ENABLE_TEST统一控制tikicpulib;仅mmpa保留基于真实 Graph 源码和 Graph UT 消费者的 RAS 门控。cast.h、contiguous.h、op_error_check.h必须保留。Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
失败包括:
fatal error: aclnn_kernels/cast.h: No such file or directoryfatal error: aicpu_engine_struct.h: No such file or directorycontiguous.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