(base) root@orangepiaipro-20t:~/Desktop/swish/gen# ./build.sh
using ASCEND_HOME_PATH: /usr/local/Ascend/ascend-toolkit/latest
Preset CMake variables:
ASCEND_COMPUTE_UNIT:STRING="ascend310b"
ASCEND_PYTHON_EXECUTABLE:STRING="python3"
CMAKE_BUILD_TYPE:STRING="Release"
CMAKE_CROSS_PLATFORM_COMPILER:PATH="/usr/bin/aarch64-linux-gnu-g++"
CMAKE_INSTALL_PREFIX:PATH="/root/Desktop/swish/gen/build_out"
ENABLE_BINARY_PACKAGE:BOOL="True"
ENABLE_CROSS_COMPILE:BOOL="False"
ENABLE_SOURCE_PACKAGE:BOOL="True"
ENABLE_TEST:BOOL="True"
vendor_name:STRING="customize"
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Opbuild generating sources
-- Opbuild generating sources - done
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CROSS_PLATFORM_COMPILER
-- Build files have been written to: /root/Desktop/swish/gen/build_out
[ 7%] Generating scripts/install.sh, scripts/upgrade.sh
[ 15%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/swish_custom.cpp.o
[ 23%] Building CXX object framework/tf_plugin/CMakeFiles/cust_tf_parsers.dir/tensorflow_swish_custom_plugin.cc.o
[ 30%] Generating tbe/op_info_cfg/ai_core/ascend310b/aic-ascend310b-ops-info.json
[ 30%] Built target gen_version_info
[ 38%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/__/autogen/op_proto.cc.o
[ 46%] Building CXX object op_host/CMakeFiles/cust_opapi.dir/__/autogen/aclnn_swish_custom.cpp.o
[ 53%] Building CXX object op_host/CMakeFiles/cust_optiling.dir/swish_custom.cpp.o
[ 61%] Generating tbe/.impl_timestamp
[ 69%] Generating tbe/op_info_cfg/ai_core/npu_supported_ops.json
[ 69%] Built target modify_vendor
/root/Desktop/swish/gen/build_out/autogen /root/Desktop/swish/gen/build_out/op_kernel/tbe/op_info_cfg/ai_core
==============check valid for ops info start==============
==============check valid for ops info end================
Compile op info cfg successfully.
[ 69%] Built target ascendc_impl_gen
[INFO] Succed generated /root/Desktop/swish/gen/build_out/op_kernel/tbe/op_info_cfg/ai_core/npu_supported_ops.json
[ 69%] Built target npu_supported_ops
[ 69%] Built target ops_info_gen_ascend310b
[ 76%] Linking CXX shared library libcust_opapi.so
[ 76%] Built target cust_opapi
[ 84%] Linking CXX shared library libcust_tf_parsers.so
[ 84%] Built target cust_tf_parsers
[100%] Linking CXX shared library libcust_opsproto_rt2.0.so
[100%] Linking CXX shared library libcust_opmaster_rt2.0.so
[100%] Built target cust_optiling
[100%] Built target cust_op_proto
[100%] Built target optiling_compat
Run CPack packaging tool...
CPack: Create package using External
CPack: Install projects
CPack: - Run preinstall target for: opp
CPack: - Install project: opp []
CPack: Create package
About to compress 460 KB of data...
Adding files to archive named "custom_opp_ubuntu_aarch64.run"...
./help.info
./install.sh
./packages/vendors/customize/framework/tensorflow/libcust_tf_parsers.so
./packages/vendors/customize/framework/tensorflow/npu_supported_ops.json
./packages/vendors/customize/op_api/include/aclnn_swish_custom.h
./packages/vendors/customize/op_api/lib/libcust_opapi.so
./packages/vendors/customize/op_impl/ai_core/tbe/config/ascend310b/aic-ascend310b-ops-info.json
./packages/vendors/customize/op_impl/ai_core/tbe/customize_impl/dynamic/swish_custom.cpp
./packages/vendors/customize/op_impl/ai_core/tbe/customize_impl/dynamic/swish_custom.py
./packages/vendors/customize/op_impl/ai_core/tbe/kernel/ascend310b/swish_custom/
./packages/vendors/customize/op_impl/ai_core/tbe/kernel/config/ascend310b/
./packages/vendors/customize/op_impl/ai_core/tbe/op_tiling/lib/linux/aarch64/libcust_opmaster_rt2.0.so
./packages/vendors/customize/op_impl/ai_core/tbe/op_tiling/liboptiling.so
./packages/vendors/customize/op_proto/inc/op_proto.h
./packages/vendors/customize/op_proto/lib/linux/aarch64/libcust_opsproto_rt2.0.so
./packages/vendors/customize/version.info
./upgrade.sh
CRC: 2897494820
SHA256: 8ec953ad3b17ba3e1782ffaf22aa510ed445ea5ac8e99b8051b628241c1d6e8b
Skipping md5sum at user request
Self-extractable archive "custom_opp_ubuntu_aarch64.run" successfully created.
Copy /root/Desktop/swish/gen/build_out/_CPack_Packages/Linux/External/custom_opp_ubuntu_aarch64.run/custom_opp_ubuntu_aarch64.run to /root/Desktop/swish/gen/build_out/
CPack: - package: /root/Desktop/swish/gen/build_out/custom_opp_ubuntu_aarch64.run.json generated.
CPack: - package: /root/Desktop/swish/gen/build_out/custom_opp_ubuntu_aarch64.run generated.
Verifying archive integrity... 100% SHA256 checksums are OK. All good.
Uncompressing version:1.0 100%
[runtime] [2025-01-01 13:32:37] [INFO] copy uninstall sh success
[ops_custom]upgrade framework
tensorflow [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops framework files .g.....
[runtime] [2025-01-01 13:32:37] copy new ops framework files ......
[ops_custom]upgrade op proto
inc lib [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops op_proto files .g.....
[runtime] [2025-01-01 13:32:37] copy new ops op_proto files ......
[ops_custom]upgrade version.info
[runtime] [2025-01-01 13:32:37] copy new version.info files ......
[ops_custom]upgrade op impl
ai_core [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops op_impl files .g.....
[runtime] [2025-01-01 13:32:37] copy new ops op_impl files ......
[ops_custom]upgrade op api
include lib [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops op_api files .g.....
[runtime] [2025-01-01 13:32:37] copy new ops op_api files ......
[runtime] [2025-01-01 13:32:37] [INFO] no need to upgrade custom.proto files
SUCCESS
[100%] Built target ascendc_impl_gen
[100%] Built target ascendc_bin_ascend310b_swish_custom_copy
[100%] Built target ascendc_bin_ascend310b
[Ascend310B1] Generating SwishCustom_8edc3d21ebcad7f48a565c4305009feb ...
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.478.279 [../../../opc_tool/op_compilation.py:336][__single_op_compile] Exception occured, An error occurred during compile phases of CompileStage.COMPILE, msg is In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6:
/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC'
AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer
~~~~~~~~~^
1 error generated.
.
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.044 [../../../opc_tool/opc_common.py:222][_log_error] Traceback (most recent call last):
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/opc_tool/op_compilation.py", line 328, in __single_op_compile
json_file_path = single_op_obj.op_compile()
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/opc_tool/single_op_compile.py", line 227, in op_compile
json_file_path = self.__call_op()
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/opc_tool/single_op_compile.py", line 140, in __call_op
op_func(*inputs, *outputs, *new_attrs, self.__op_info.get(OpcOptions.KERNEL_NAME), **kwargs)
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/common/register/operation_func_mgr.py", line 214, in wrapper
return func(*args, **kwargs)
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.150 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/common/utils/para_check.py", line 543, in _in_wrapper
return func(*args, **kwargs)
File "/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/SwishCustom.py", line 202, in swish_custom
compile_op(src, origin_func_name, op_info, options, code_channel, '{}')
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 2084, in compile_op
_compile_ascendc_cce_regbase(compile_info, compile_option_tuple, tiling_info)
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.236 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 3130, in _compile_ascendc_cce_regbase
tiling_key_list = _call_bisheng_regbase(compile_info, compile_option_tuple, tiling_info, arch, \
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 3471, in _call_bisheng_regbase
_compile_multi_tilingkey(compile_info.tiling_key_list, cmds_list, \
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 2205, in _compile_multi_tilingkey
CommonUtility.run_cmd_inner(cmds, CompileStage.COMPILE, compile_log_path)
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.315 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 357, in run_cmd_inner
CommonUtility.dump_build_log(output.decode(), cmds, stage, ret_code)
File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 515, in dump_build_log
raise Exception("An error occurred during compile phases of {}, msg is {}".\
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.388 [../../../opc_tool/opc_common.py:222][_log_error] Exception: An error occurred during compile phases of CompileStage.COMPILE, msg is In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6:
/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC'
AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer
~~~~~~~~~^
1 error generated.
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.481 [../../../opc_tool/op_compilation.py:209][record_compile_error_info] Op[SwishCustom] of index[0] compile failed, kernelName: SwishCustom_8edc3d21ebcad7f48a565c4305009feb
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.788 [../../../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 In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6:
/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC'
AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer
~~~~~~~~~^
1 error generated.
]
[ERROR] TBE(8269,python3):2025-01-01-13:32:57.483.809 [../../../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 SwishCustom. kernel name is SwishCustom_8edc3d21ebcad7f48a565c4305009feb
[2025-1-1 5:32:57] [ERROR] [ascend310b] SwishCustom_8edc3d21ebcad7f48a565c4305009feb In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6:
/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC'
AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer
~~~~~~~~~^
1 error generated.
/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/bin/swish_custom/SwishCustom_8edc3d21ebcad7f48a565c4305009feb.json not generated!
gmake[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend310b_swish_custom_0.dir/build.make:70: op_kernel/CMakeFiles/ascendc_bin_ascend310b_swish_custom_0] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:507: op_kernel/CMakeFiles/ascendc_bin_ascend310b_swish_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.
(base) root@orangepiaipro-20t:~/Desktop/swish/gen#
问题描述
使用工程化算子创建方式,实现自定义的swish算子代码,其中调用了AscendC算子库提供的high-level API Sigmoid激活函数。
调用代码和所引用头文件:
#include "kernel_operator.h" #include "lib/activation/sigmoid.h" ...... __aicore__ inline void Compute(int32_t progress) { AscendC::LocalTensor<float> xLocal = inQueueX.DeQue<float>(); AscendC::LocalTensor<float> yLocal = outQueueY.AllocTensor<float>(); AscendC::LocalTensor<uint8_t> sharedTmpBuffer = tmpQue1.Get<uint8_t>(); AscendC::LocalTensor<float> sigmoidLocal = tmpQue2.Get<float>(); AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); AscendC::Mul(yLocal, xLocal, sigmoidLocal, this->tileLength); outQueueY.EnQue<float>(yLocal); inQueueX.FreeTensor(xLocal); }在运行build.sh时报错,
error: no member named 'Sigmoid' in namespace 'AscendC' AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer ~~~~~~~~~^ 1 error generated.环境
get_env.sh输出环境信息如下:
完整报错
(base) root@orangepiaipro-20t:~/Desktop/swish/gen# ./build.sh using ASCEND_HOME_PATH: /usr/local/Ascend/ascend-toolkit/latest Preset CMake variables: ASCEND_COMPUTE_UNIT:STRING="ascend310b" ASCEND_PYTHON_EXECUTABLE:STRING="python3" CMAKE_BUILD_TYPE:STRING="Release" CMAKE_CROSS_PLATFORM_COMPILER:PATH="/usr/bin/aarch64-linux-gnu-g++" CMAKE_INSTALL_PREFIX:PATH="/root/Desktop/swish/gen/build_out" ENABLE_BINARY_PACKAGE:BOOL="True" ENABLE_CROSS_COMPILE:BOOL="False" ENABLE_SOURCE_PACKAGE:BOOL="True" ENABLE_TEST:BOOL="True" vendor_name:STRING="customize" -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Opbuild generating sources -- Opbuild generating sources - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CROSS_PLATFORM_COMPILER -- Build files have been written to: /root/Desktop/swish/gen/build_out [ 7%] Generating scripts/install.sh, scripts/upgrade.sh [ 15%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/swish_custom.cpp.o [ 23%] Building CXX object framework/tf_plugin/CMakeFiles/cust_tf_parsers.dir/tensorflow_swish_custom_plugin.cc.o [ 30%] Generating tbe/op_info_cfg/ai_core/ascend310b/aic-ascend310b-ops-info.json [ 30%] Built target gen_version_info [ 38%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/__/autogen/op_proto.cc.o [ 46%] Building CXX object op_host/CMakeFiles/cust_opapi.dir/__/autogen/aclnn_swish_custom.cpp.o [ 53%] Building CXX object op_host/CMakeFiles/cust_optiling.dir/swish_custom.cpp.o [ 61%] Generating tbe/.impl_timestamp [ 69%] Generating tbe/op_info_cfg/ai_core/npu_supported_ops.json [ 69%] Built target modify_vendor /root/Desktop/swish/gen/build_out/autogen /root/Desktop/swish/gen/build_out/op_kernel/tbe/op_info_cfg/ai_core ==============check valid for ops info start============== ==============check valid for ops info end================ Compile op info cfg successfully. [ 69%] Built target ascendc_impl_gen [INFO] Succed generated /root/Desktop/swish/gen/build_out/op_kernel/tbe/op_info_cfg/ai_core/npu_supported_ops.json [ 69%] Built target npu_supported_ops [ 69%] Built target ops_info_gen_ascend310b [ 76%] Linking CXX shared library libcust_opapi.so [ 76%] Built target cust_opapi [ 84%] Linking CXX shared library libcust_tf_parsers.so [ 84%] Built target cust_tf_parsers [100%] Linking CXX shared library libcust_opsproto_rt2.0.so [100%] Linking CXX shared library libcust_opmaster_rt2.0.so [100%] Built target cust_optiling [100%] Built target cust_op_proto [100%] Built target optiling_compat Run CPack packaging tool... CPack: Create package using External CPack: Install projects CPack: - Run preinstall target for: opp CPack: - Install project: opp [] CPack: Create package About to compress 460 KB of data... Adding files to archive named "custom_opp_ubuntu_aarch64.run"... ./help.info ./install.sh ./packages/vendors/customize/framework/tensorflow/libcust_tf_parsers.so ./packages/vendors/customize/framework/tensorflow/npu_supported_ops.json ./packages/vendors/customize/op_api/include/aclnn_swish_custom.h ./packages/vendors/customize/op_api/lib/libcust_opapi.so ./packages/vendors/customize/op_impl/ai_core/tbe/config/ascend310b/aic-ascend310b-ops-info.json ./packages/vendors/customize/op_impl/ai_core/tbe/customize_impl/dynamic/swish_custom.cpp ./packages/vendors/customize/op_impl/ai_core/tbe/customize_impl/dynamic/swish_custom.py ./packages/vendors/customize/op_impl/ai_core/tbe/kernel/ascend310b/swish_custom/ ./packages/vendors/customize/op_impl/ai_core/tbe/kernel/config/ascend310b/ ./packages/vendors/customize/op_impl/ai_core/tbe/op_tiling/lib/linux/aarch64/libcust_opmaster_rt2.0.so ./packages/vendors/customize/op_impl/ai_core/tbe/op_tiling/liboptiling.so ./packages/vendors/customize/op_proto/inc/op_proto.h ./packages/vendors/customize/op_proto/lib/linux/aarch64/libcust_opsproto_rt2.0.so ./packages/vendors/customize/version.info ./upgrade.sh CRC: 2897494820 SHA256: 8ec953ad3b17ba3e1782ffaf22aa510ed445ea5ac8e99b8051b628241c1d6e8b Skipping md5sum at user request Self-extractable archive "custom_opp_ubuntu_aarch64.run" successfully created. Copy /root/Desktop/swish/gen/build_out/_CPack_Packages/Linux/External/custom_opp_ubuntu_aarch64.run/custom_opp_ubuntu_aarch64.run to /root/Desktop/swish/gen/build_out/ CPack: - package: /root/Desktop/swish/gen/build_out/custom_opp_ubuntu_aarch64.run.json generated. CPack: - package: /root/Desktop/swish/gen/build_out/custom_opp_ubuntu_aarch64.run generated. Verifying archive integrity... 100% SHA256 checksums are OK. All good. Uncompressing version:1.0 100% [runtime] [2025-01-01 13:32:37] [INFO] copy uninstall sh success [ops_custom]upgrade framework tensorflow [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops framework files .g..... [runtime] [2025-01-01 13:32:37] copy new ops framework files ...... [ops_custom]upgrade op proto inc lib [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops op_proto files .g..... [runtime] [2025-01-01 13:32:37] copy new ops op_proto files ...... [ops_custom]upgrade version.info [runtime] [2025-01-01 13:32:37] copy new version.info files ...... [ops_custom]upgrade op impl ai_core [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops op_impl files .g..... [runtime] [2025-01-01 13:32:37] copy new ops op_impl files ...... [ops_custom]upgrade op api include lib [runtime] [2025-01-01 13:32:37] [INFO] replace or merge old ops op_api files .g..... [runtime] [2025-01-01 13:32:37] copy new ops op_api files ...... [runtime] [2025-01-01 13:32:37] [INFO] no need to upgrade custom.proto files SUCCESS [100%] Built target ascendc_impl_gen [100%] Built target ascendc_bin_ascend310b_swish_custom_copy [100%] Built target ascendc_bin_ascend310b [Ascend310B1] Generating SwishCustom_8edc3d21ebcad7f48a565c4305009feb ... [ERROR] TBE(8269,python3):2025-01-01-13:32:57.478.279 [../../../opc_tool/op_compilation.py:336][__single_op_compile] Exception occured, An error occurred during compile phases of CompileStage.COMPILE, msg is In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6: /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC' AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer ~~~~~~~~~^ 1 error generated. . [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.044 [../../../opc_tool/opc_common.py:222][_log_error] Traceback (most recent call last): File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/opc_tool/op_compilation.py", line 328, in __single_op_compile json_file_path = single_op_obj.op_compile() File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/opc_tool/single_op_compile.py", line 227, in op_compile json_file_path = self.__call_op() File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/opc_tool/single_op_compile.py", line 140, in __call_op op_func(*inputs, *outputs, *new_attrs, self.__op_info.get(OpcOptions.KERNEL_NAME), **kwargs) File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/common/register/operation_func_mgr.py", line 214, in wrapper return func(*args, **kwargs) [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.150 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/common/utils/para_check.py", line 543, in _in_wrapper return func(*args, **kwargs) File "/root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/SwishCustom.py", line 202, in swish_custom compile_op(src, origin_func_name, op_info, options, code_channel, '{}') File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 2084, in compile_op _compile_ascendc_cce_regbase(compile_info, compile_option_tuple, tiling_info) [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.236 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 3130, in _compile_ascendc_cce_regbase tiling_key_list = _call_bisheng_regbase(compile_info, compile_option_tuple, tiling_info, arch, \ File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 3471, in _call_bisheng_regbase _compile_multi_tilingkey(compile_info.tiling_key_list, cmds_list, \ File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 2205, in _compile_multi_tilingkey CommonUtility.run_cmd_inner(cmds, CompileStage.COMPILE, compile_log_path) [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.315 [../../../opc_tool/opc_common.py:222][_log_error] File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 357, in run_cmd_inner CommonUtility.dump_build_log(output.decode(), cmds, stage, ret_code) File "/usr/local/Ascend/ascend-toolkit/8.0.0.alpha002/python/site-packages/tbe/tikcpp/compile_op.py", line 515, in dump_build_log raise Exception("An error occurred during compile phases of {}, msg is {}".\ [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.388 [../../../opc_tool/opc_common.py:222][_log_error] Exception: An error occurred during compile phases of CompileStage.COMPILE, msg is In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6: /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC' AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer ~~~~~~~~~^ 1 error generated. [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.481 [../../../opc_tool/op_compilation.py:209][record_compile_error_info] Op[SwishCustom] of index[0] compile failed, kernelName: SwishCustom_8edc3d21ebcad7f48a565c4305009feb [ERROR] TBE(8269,python3):2025-01-01-13:32:57.482.788 [../../../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 In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6: /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC' AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer ~~~~~~~~~^ 1 error generated. ] [ERROR] TBE(8269,python3):2025-01-01-13:32:57.483.809 [../../../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 SwishCustom. kernel name is SwishCustom_8edc3d21ebcad7f48a565c4305009feb [2025-1-1 5:32:57] [ERROR] [ascend310b] SwishCustom_8edc3d21ebcad7f48a565c4305009feb In file included from /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/kernel_meta_SwishCustom_8edc3d21ebcad7f48a565c4305009feb/kernel_meta/SwishCustom_8edc3d21ebcad7f48a565c4305009feb_8269_kernel.cpp:6: /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/src/swish_custom.cpp:69:11: error: no member named 'Sigmoid' in namespace 'AscendC' AscendC::Sigmoid(sigmoidLocal, xLocal, sharedTmpBuffer, this->tileLength); // Use sharedTmpBuffer ~~~~~~~~~^ 1 error generated. /root/Desktop/swish/gen/build_out/op_kernel/binary/ascend310b/bin/swish_custom/SwishCustom_8edc3d21ebcad7f48a565c4305009feb.json not generated! gmake[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend310b_swish_custom_0.dir/build.make:70: op_kernel/CMakeFiles/ascendc_bin_ascend310b_swish_custom_0] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:507: op_kernel/CMakeFiles/ascendc_bin_ascend310b_swish_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. (base) root@orangepiaipro-20t:~/Desktop/swish/gen#