(base) root@davinci-mini:/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AclNNInvocation/build# make
[ 16%] Building CXX object CMakeFiles/execute_add_op.dir/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom/build_out/autogen/aclnn_add_custom.cpp.o
/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom/build_out/autogen/aclnn_add_custom.cpp:2:10: fatal error: graph/types.h: No such file or directory
2 | #include "graph/types.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/execute_add_op.dir/build.make:76: CMakeFiles/execute_add_op.dir/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom/build_out/autogen/aclnn_add_custom.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/execute_add_op.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
配置的Cmakelist应该是没问题的,设置了export DDK_PATH=$usr/local/Ascend/ascend-toolkit/latest和export NPU_HOST_LIB=$usr/local/Ascend/ascend-toolkit/latestaarch64-linux/lib64。不知道是否还有哪里的环境有问题?
[ 16%] Building CXX object CMakeFiles/execute_add_op.dir/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom/build_out/autogen/aclnn_add_custom.cpp.o
/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom/build_out/autogen/aclnn_add_custom.cpp:2:10: fatal error: graph/types.h: No such file or directory
2 | #include "graph/types.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/execute_add_op.dir/build.make:76: CMakeFiles/execute_add_op.dir/home/HwHiAiUser/Downloads/samples/operator/AddCustomSample/FrameworkLaunch/AddCustom/build_out/autogen/aclnn_add_custom.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/execute_add_op.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
配置的Cmakelist应该是没问题的,设置了export DDK_PATH=$usr/local/Ascend/ascend-toolkit/latest和export NPU_HOST_LIB=$usr/local/Ascend/ascend-toolkit/latestaarch64-linux/lib64。不知道是否还有哪里的环境有问题?