[100%] Built target ascendc_impl_gen
[100%] Built target ascendc_bin_ascend910b_nll_loss_copy
[100%] Built target ascendc_bin_ascend910b
[Ascend910B1] Generating NLLLoss_1fcbaa80dce92b59e8af83b59108685e ...
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.550.350 [../../../opc_tool/op_compilation.py:337][__single_op_compile] Exception occured, An error occurred during compile phases of CompileStage.COMPILE, msg is /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul'
matmul::clearWorkspace(workspace);
^
1 error generated.
.
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.634 [../../../opc_tool/opc_common.py:222][_log_error] Traceback (most recent call last):
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/opc_tool/op_compilation.py", line 329, in __single_op_compile
json_file_path = single_op_obj.op_compile()
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/opc_tool/single_op_compile.py", line 223, in op_compile
json_file_path = self.__call_op()
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/opc_tool/single_op_compile.py", line 136, in __call_op
op_func(*inputs, *outputs, *new_attrs, self.__op_info.get(OpcOptions.KERNEL_NAME), **kwargs)
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.705 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/common/register/operation_func_mgr.py", line 214, in wrapper
return func(*args, **kwargs)
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/common/utils/para_check.py", line 540, in _in_wrapper
return func(*args, **kwargs)
File "/home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/src/NLLLoss.py", line 210, in nll_loss
compile_op(src, origin_func_name, op_info, options, code_channel, '{}')
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 1580, in compile_op
_compile_ascendc_cce_v220(compile_info, compile_option_tuple, tiling_info)
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.758 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 2556, in _compile_ascendc_cce_v220
tiling_key_list = _call_bisheng_v220(cube_compile_info, compile_option_tuple, tiling_info, arch,\
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 2887, in _call_bisheng_v220
_compile_multi_tilingkey(compile_info.tiling_key_list, cmds_list, \
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 1705, in _compile_multi_tilingkey
CommonUtility.run_cmd_inner(cmds, CompileStage.COMPILE, compile_log_path)
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.806 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 347, in run_cmd_inner
CommonUtility.dump_build_log(output.decode(), cmds, stage, ret_code)
File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 476, in dump_build_log
raise Exception("An error occurred during compile phases of {}, msg is {}".\
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.852 [../../../opc_tool/opc_common.py:222][_log_error] Exception: An error occurred during compile phases of CompileStage.COMPILE, msg is /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul'
matmul::clearWorkspace(workspace);
^
1 error generated.
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.917 [../../../opc_tool/op_compilation.py:209][record_compile_error_info] Op[NLLLoss] of index[0] compile failed, kernelName: NLLLoss_1fcbaa80dce92b59e8af83b59108685e
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.554.149 [../../../opc_tool/opc_common.py:515][opc_log_full] [op_compilation.py:211][record_compile_error_info] reason is:[An error occurred during compile phases of CompileStage.COMPILE, msg is /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul'
matmul::clearWorkspace(workspace);
^
1 error generated.
]
[ERROR] TBE(1573645,python3):2024-11-26-19:18:47.555.138 [../../../opc_tool/opc.py:708][main] Opc tool compile failed.
Opc tool start working now, please wait for a moment.
start compile Ascend C operator NLLLoss. kernel name is NLLLoss_1fcbaa80dce92b59e8af83b59108685e
[2024-11-26 11:18:47] [ERROR] [ascend910b] NLLLoss_1fcbaa80dce92b59e8af83b59108685e /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul'
matmul::clearWorkspace(workspace);
^
1 error generated.
/home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/bin/nll_loss/NLLLoss_1fcbaa80dce92b59e8af83b59108685e.json not generated!
op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0.dir/build.make:70: recipe for target 'op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0' failed
make[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0] Error 1
CMakeFiles/Makefile2:465: recipe for target 'op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0.dir/all' failed
make[2]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0.dir/all] Error 2
CMakeFiles/Makefile2:367: recipe for target 'op_kernel/CMakeFiles/binary.dir/rule' failed
make[1]: *** [op_kernel/CMakeFiles/binary.dir/rule] Error 2
Makefile:293: recipe for target 'binary' failed
make: *** [binary] Error 2
[ERROR] Kernel compile failed, the run package will not be generated.
KunLun G8600
CANN:8.0.RC3.alpha003
driver:23.0.2
场景:算子开发,使用msopgen生成算子工程,aclnn调用,在算子实现中是纯vector操作,但是出现matmul相关的报错。报错内容如下:
[100%] Built target ascendc_impl_gen [100%] Built target ascendc_bin_ascend910b_nll_loss_copy [100%] Built target ascendc_bin_ascend910b [Ascend910B1] Generating NLLLoss_1fcbaa80dce92b59e8af83b59108685e ... [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.550.350 [../../../opc_tool/op_compilation.py:337][__single_op_compile] Exception occured, An error occurred during compile phases of CompileStage.COMPILE, msg is /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul' matmul::clearWorkspace(workspace); ^ 1 error generated. . [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.634 [../../../opc_tool/opc_common.py:222][_log_error] Traceback (most recent call last): File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/opc_tool/op_compilation.py", line 329, in __single_op_compile json_file_path = single_op_obj.op_compile() File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/opc_tool/single_op_compile.py", line 223, in op_compile json_file_path = self.__call_op() File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/opc_tool/single_op_compile.py", line 136, in __call_op op_func(*inputs, *outputs, *new_attrs, self.__op_info.get(OpcOptions.KERNEL_NAME), **kwargs) [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.705 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/common/register/operation_func_mgr.py", line 214, in wrapper return func(*args, **kwargs) File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/common/utils/para_check.py", line 540, in _in_wrapper return func(*args, **kwargs) File "/home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/src/NLLLoss.py", line 210, in nll_loss compile_op(src, origin_func_name, op_info, options, code_channel, '{}') File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 1580, in compile_op _compile_ascendc_cce_v220(compile_info, compile_option_tuple, tiling_info) [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.758 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 2556, in _compile_ascendc_cce_v220 tiling_key_list = _call_bisheng_v220(cube_compile_info, compile_option_tuple, tiling_info, arch,\ File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 2887, in _call_bisheng_v220 _compile_multi_tilingkey(compile_info.tiling_key_list, cmds_list, \ File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 1705, in _compile_multi_tilingkey CommonUtility.run_cmd_inner(cmds, CompileStage.COMPILE, compile_log_path) [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.806 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 347, in run_cmd_inner CommonUtility.dump_build_log(output.decode(), cmds, stage, ret_code) File "/usr/local/Ascend/ascend-toolkit/8.0.RC3.alpha003/python/site-packages/tbe/tikcpp/compile_op.py", line 476, in dump_build_log raise Exception("An error occurred during compile phases of {}, msg is {}".\ [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.852 [../../../opc_tool/opc_common.py:222][_log_error] Exception: An error occurred during compile phases of CompileStage.COMPILE, msg is /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul' matmul::clearWorkspace(workspace); ^ 1 error generated. [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.553.917 [../../../opc_tool/op_compilation.py:209][record_compile_error_info] Op[NLLLoss] of index[0] compile failed, kernelName: NLLLoss_1fcbaa80dce92b59e8af83b59108685e [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.554.149 [../../../opc_tool/opc_common.py:515][opc_log_full] [op_compilation.py:211][record_compile_error_info] reason is:[An error occurred during compile phases of CompileStage.COMPILE, msg is /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul' matmul::clearWorkspace(workspace); ^ 1 error generated. ] [ERROR] TBE(1573645,python3):2024-11-26-19:18:47.555.138 [../../../opc_tool/opc.py:708][main] Opc tool compile failed. Opc tool start working now, please wait for a moment. start compile Ascend C operator NLLLoss. kernel name is NLLLoss_1fcbaa80dce92b59e8af83b59108685e [2024-11-26 11:18:47] [ERROR] [ascend910b] NLLLoss_1fcbaa80dce92b59e8af83b59108685e /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/kernel_meta_NLLLoss_1fcbaa80dce92b59e8af83b59108685e/kernel_meta/NLLLoss_1fcbaa80dce92b59e8af83b59108685e_1573645_kernel.cpp:33:9: error: use of undeclared identifier 'matmul' matmul::clearWorkspace(workspace); ^ 1 error generated. /home/tangjinlong/proj/op_challengeS3/perf/op/NLLLoss/NLLLoss/build_out/op_kernel/binary/ascend910b/bin/nll_loss/NLLLoss_1fcbaa80dce92b59e8af83b59108685e.json not generated! op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0.dir/build.make:70: recipe for target 'op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0' failed make[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0] Error 1 CMakeFiles/Makefile2:465: recipe for target 'op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0.dir/all' failed make[2]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend910b_nll_loss_0.dir/all] Error 2 CMakeFiles/Makefile2:367: recipe for target 'op_kernel/CMakeFiles/binary.dir/rule' failed make[1]: *** [op_kernel/CMakeFiles/binary.dir/rule] Error 2 Makefile:293: recipe for target 'binary' failed make: *** [binary] Error 2 [ERROR] Kernel compile failed, the run package will not be generated.