已关闭
[Bug-Report|缺陷反馈]: 按照文档中编译自定义算子报错 #100
condfuse_3创建于 2025年11月6日关闭于 2025年11月19日
chenqi317
2025年11月6日 评论:
2025年11月6日 评论:
你好 ,抱歉资料提示不全,造成困扰
您可以执行bash build.sh --pkg --soc=ascend910b --ops=transpose_batch_mat_mul 触发transpose_batch_mat_mul编译。
若想使用 experimental 中执行 mamtul相关的算子,需要将matmul 目录拷贝到experimental 中。
资料正在补齐完善中。


condfuse_3
2025年11月7日 评论:
2025年11月7日 评论:
建议在README中补充一下,我初看README认为在experimental 中是存在这个算子,并不需要我将其拷贝


liuyufan
2025年11月7日 评论:
2025年11月7日 评论:
感谢您的建议,会对相关资料进行完善


2025年11月13日 关联了pull request:support experimental
2025年11月19日 关闭了 issue
3月20日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
bash build.sh --pkg --experimental --soc=ascend910b --ops=transpose_batch_mat_mul
[2025-11-06 12:22:49] -- set package config: ENABLE_SOURCE_PACKAGE;True;ENABLE_BINARY_PACKAGE;True;INSTALL_PATH;/root/Ch/ops-nn/build_out/;VENDOR_NAME;custom_nn;ENABLE_DEFAULT_PACKAGE_NAME_RULE;False
CMake Error at /usr/local/Ascend/latest/compiler/tikcpp/ascendc_kernel_cmake/modules/ascend_modules/func.cmake:740 (message):
must provide LIBRARY for npu_op_package_add
Call Stack (most recent call first):
cmake/package.cmake:41 (npu_op_package_add)
CMakeLists.txt:152 (pack_custom)
Environment / 环境信息 (Mandatory / 必填)
910B4
环境按照文档安装的
能够成功编译ops-math的自定义算子
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
git clone https://gitcode.com/cann/ops-nn.git
cd ops-nn/
1005 bash build.sh --pkg --experimental --soc=ascend910b --ops=transpose_batch_mat_mul
Describe the expected behavior / 预期结果 (Mandatory / 必填)
能够成功编译
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
[2025-11-06 12:22:49] -- set package config: ENABLE_SOURCE_PACKAGE;True;ENABLE_BINARY_PACKAGE;True;INSTALL_PATH;/root/Ch/ops-nn/build_out/;VENDOR_NAME;custom_nn;ENABLE_DEFAULT_PACKAGE_NAME_RULE;False
CMake Error at /usr/local/Ascend/latest/compiler/tikcpp/ascendc_kernel_cmake/modules/ascend_modules/func.cmake:740 (message):
must provide LIBRARY for npu_op_package_add
Call Stack (most recent call first):
cmake/package.cmake:41 (npu_op_package_add)
CMakeLists.txt:152 (pack_custom)
Special notes for this issue/备注 (Optional / 选填)