AddCustom do not registe tiling struct!!!
收藏回复举报
AddCustom do not registe tiling struct!!!
t('forum.solved') 已解决
新人帖
发表于2024-12-23 16:33:24
0 查看
[ERROR]: AddCustom do not registe tiling struct!!! 

[2024-12-23 8:24:14] [ERROR] [ascend310p] AddCustom_ab1b6750d7f510985325b603cb06dc8b In file included from /work/jiec/AscendC/samples/operator/ascendc/0_introduction/1_add_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310p/kernel_meta_AddCustom_ab1b6750d7f510985325b603cb06dc8b/kernel_meta/AddCustom_ab1b6750d7f510985325b603cb06dc8b_139133_kernel.cpp:6: 

/work/jiec/AscendC/samples/operator/ascendc/0_introduction/1_add_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310p/src/add_custom.cpp:80:21: error: use of undeclared identifier 'tiling_data' 

    GET_TILING_DATA(tiling_data, tiling); 

                    ^ 

/work/jiec/AscendC/samples/operator/ascendc/0_introduction/1_add_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310p/src/add_custom.cpp:82:22: error: use of undeclared identifier 'tiling_data' 

    op.Init(x, y, z, tiling_data.totalLength, tiling_data.tileNum); 

                     ^ 

/work/jiec/AscendC/samples/operator/ascendc/0_introduction/1_add_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310p/src/add_custom.cpp:82:47: error: use of undeclared identifier 'tiling_data' 

    op.Init(x, y, z, tiling_data.totalLength, tiling_data.tileNum); 

                                              ^ 

3 errors generated. 

/work/jiec/AscendC/samples/operator/ascendc/0_introduction/1_add_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310p/bin/add_custom/AddCustom_ab1b6750d7f510985325b603cb06dc8b.json not generated! 

gmake[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend310p_add_custom_0.dir/build.make:70: op_kernel/CMakeFiles/ascendc_bin_ascend310p_add_custom_0] Error 1 

gmake[2]: *** [CMakeFiles/Makefile2:507: op_kernel/CMakeFiles/ascendc_bin_ascend310p_add_custom_0.dir/all] Error 2 

gmake[1]: *** [CMakeFiles/Makefile2:409: op_kernel/CMakeFiles/binary.dir/rule] Error 2 

gmake: *** [Makefile:306: binary] Error 2 

[ERROR] Kernel compile failed, the run package will not be generated.

我要发帖子