build ops lib error: In file included from /home/yanshen/Ascend/samples/operator/LeakyReluCustomSample/FrameworkLaunch/LeakyReluCustom/op_host/leaky_relu_custom.cpp:10:
/home/yanshen/Ascend/samples/operator/LeakyReluCustomSample/FrameworkLaunch/LeakyReluCustom/op_host/leaky_relu_custom_tiling.h:12:10: fatal error: register/tilingdata_base.h: 没有那个文件或目录
12 | #include "register/tilingdata_base.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMake Error at cmake/func.cmake:28 (message):
opbuild run failed!
Call Stack (most recent call first):
op_host/CMakeLists.txt:4 (opbuild)
-- Configuring incomplete, errors occurred!
See also "/home/yanshen/Ascend/samples/operator/LeakyReluCustomSample/FrameworkLaunch/LeakyReluCustom/build_out/CMakeFiles/CMakeOutput.log".
make: *** 没有规则可制作目标“package”。 停止。
我的toolkit版本是:8.0.RC2.alpha003
我运行的是LeakyReluCustomSample中的build.sh文件。
我所做的debug操作有:
1. 检查包含路径是否正确,在func.cmake第28行里编译头文件的路径:-I ${ASCEND_CANN_PACKAGE_PATH}/include。在我使用gedit ${ASCEND_CANN_PACKAGE_PATH}/include/register/tilingdata_base.h的命令后,确认可以找到对应的头文件。
2. 在cmake里打印${ASCEND_CANN_PACKAGE_PATH}发现里也是正确路径。
请问这种问题应该怎么排查呢?
build ops lib error: In file included from /home/yanshen/Ascend/samples/operator/LeakyReluCustomSample/FrameworkLaunch/LeakyReluCustom/op_host/leaky_relu_custom.cpp:10:
/home/yanshen/Ascend/samples/operator/LeakyReluCustomSample/FrameworkLaunch/LeakyReluCustom/op_host/leaky_relu_custom_tiling.h:12:10: fatal error: register/tilingdata_base.h: 没有那个文件或目录
12 | #include "register/tilingdata_base.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMake Error at cmake/func.cmake:28 (message):
opbuild run failed!
Call Stack (most recent call first):
op_host/CMakeLists.txt:4 (opbuild)
-- Configuring incomplete, errors occurred!
See also "/home/yanshen/Ascend/samples/operator/LeakyReluCustomSample/FrameworkLaunch/LeakyReluCustom/build_out/CMakeFiles/CMakeOutput.log".
make: *** 没有规则可制作目标“package”。 停止。
我的toolkit版本是:8.0.RC2.alpha003
我运行的是LeakyReluCustomSample中的build.sh文件。
我所做的debug操作有:
1. 检查包含路径是否正确,在func.cmake第28行里编译头文件的路径:-I ${ASCEND_CANN_PACKAGE_PATH}/include。在我使用gedit ${ASCEND_CANN_PACKAGE_PATH}/include/register/tilingdata_base.h的命令后,确认可以找到对应的头文件。
2. 在cmake里打印${ASCEND_CANN_PACKAGE_PATH}发现里也是正确路径。
请问这种问题应该怎么排查呢?