基于自定义算子工程的算子开发 算子ST测试报错
收藏回复举报
基于自定义算子工程的算子开发 算子ST测试报错
t('forum.solved') 已解决
发表于2024-06-06 00:37:05
0 查看

我的硬件为orangepi AIpro,芯片为Ascend310C4,使用的CANN的版本为8.0.RC2.alpha002。

选择的CANN的版本是支持Ascend C算子开发这一章节的。

true

在学习算子开发的过程中,我参考基于自定义算子工程的算子开发时在进行算子ST测试时报错如下

true

我的开发流程为:

1、创建工程/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/bin/msopgen gen -i /root/my_robot/ascend_operator/AddCustom/add_custom.json -c ai_core-Ascend310B -lan cpp -out /root/my_robot/ascend_operator/AddCustom

2、根据文档修改CMakePresets.json , add_custom_tiling.h , op_host/add_custom.cpp , op_kernel/add_custom.cpp

3、编译部署

./build.sh
./build_out/custom_opp_ubuntu_aarch64.run --install-path=/root/my_robot/ascend_operator/my_operator

4、在~/.bashrc中添加下面内容并刷新环境变量

source /root/my_robot/ascend_operator/my_operator/vendors/customize/bin/set_env.bash
export DDK_PATH=/usr/local/Ascend/ascend-toolkit/latest
export NPU_HOST_LIB=/usr/local/Ascend/ascend-toolkit/latest/runtime/lib64/stub

5、创建AddCustom_case.json后进行算子ST测试

/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/bin/msopst run -i /root/my_robot/ascend_operator/AddCustom/AddCustom_st/AddCustom_case.json -soc Ascend310B4 -out /root/my_robot/ascend_operator/AddCustom/AddCustom_st

然后就出现上述报错了。我看到报错有这一行regbase not support static_shape_flag for now!,想请教一下是什么问题,是版本不支持吗?

我要发帖子